From 209c6d9d65639dd868504551444d50b938df3451 Mon Sep 17 00:00:00 2001 From: amay077 Date: Sat, 11 May 2024 17:23:25 +0900 Subject: [PATCH] loading --- src/lib/MainContent.svelte | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/lib/MainContent.svelte b/src/lib/MainContent.svelte index 7dbf653..1b07c26 100644 --- a/src/lib/MainContent.svelte +++ b/src/lib/MainContent.svelte @@ -31,6 +31,7 @@ let loading = true; let posting = false; + let postingVenueId: string | null = null; onMount(async () => { console.log(`onMount`); @@ -121,6 +122,7 @@ const post = async (checkin: any) => { posting = true; + postingVenueId = checkin?.venue?.id; const checkinDetail = await fetch(`https://api.foursquare.com/v2/checkins/${checkin.id}?oauth_token=${accessToken}&v=20230823`) .then(response => response.json()); @@ -373,12 +375,19 @@ 非公開 {:else}
- {#if Array.from(Object.values(postTo)).some(x => x)} - + + {/if}