diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 3a43a5e..e01f830 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -38,17 +38,7 @@ '/': Home, '/anime/:id': wrap({ asyncComponent: () => import('./routes/AnimeRoutePage.svelte'), - conditions: [ - async () => await CheckIfAniListLoggedIn(), - async (detail) => { - aniListAnime.update(value => { - value = AniListGetSingleAnimeDefaultData - return value - }) - await GetAnimeSingleItem(Number(detail.params.id), true) - return Object.keys($aniListAnime).length!==0 - }, - ], + conditions: [async () => await CheckIfAniListLoggedIn()], loadingComponent: Spinner }), // '*': "Not Found" diff --git a/frontend/src/routes/AnimeRoutePage.svelte b/frontend/src/routes/AnimeRoutePage.svelte index e0bc000..243ff9d 100644 --- a/frontend/src/routes/AnimeRoutePage.svelte +++ b/frontend/src/routes/AnimeRoutePage.svelte @@ -1,9 +1,23 @@ {#key params.id} - + {#await loadPromise} + + {:then _} + + {/await} {/key} \ No newline at end of file diff --git a/wails.json b/wails.json index e9cafcf..d170dcf 100644 --- a/wails.json +++ b/wails.json @@ -12,6 +12,6 @@ }, "info": { "productName": "AniTrack", - "productVersion": "0.4.0" + "productVersion": "0.5.0" } }