aboutsummaryrefslogtreecommitdiff
path: root/src/lib/List
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-05-06 05:13:15 -0700
committerFuwn <[email protected]>2024-05-06 05:13:15 -0700
commit76d9931ca296619e6c583df1423fc05a98c00ab3 (patch)
treeb2e5526255b24b44e87a73db1da9351a71c0d814 /src/lib/List
parentfeat(landing): update descriptions (diff)
downloaddue.moe-76d9931ca296619e6c583df1423fc05a98c00ab3.tar.xz
due.moe-76d9931ca296619e6c583df1423fc05a98c00ab3.zip
fix(manga): dummy refresh button
Diffstat (limited to 'src/lib/List')
-rw-r--r--src/lib/List/Manga/MangaListTemplate.svelte100
1 files changed, 68 insertions, 32 deletions
diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte
index 6ef172d7..073cf44c 100644
--- a/src/lib/List/Manga/MangaListTemplate.svelte
+++ b/src/lib/List/Manga/MangaListTemplate.svelte
@@ -259,19 +259,32 @@
/>
{:else}
{#if !authorised}
- <ListTitle count={0} time={endTime / 1000} title={$locale().lists.due.mangaAndLightNovels}>
- <button
- data-umami-event="Force Refresh Manga"
- title="Force a full refresh"
- on:click={() => {
- cleanCache();
-
- forceFlag = true;
- }}>Refresh</button
- >
+ <ListTitle
+ count={0}
+ time={endTime / 1000}
+ title={$locale().lists.due.mangaAndLightNovels}
+ hideTime={dummy}
+ hideCount={dummy}
+ >
+ {#if !dummy}
+ <button
+ data-umami-event="Force Refresh Manga"
+ title="Force a full refresh"
+ on:click={() => {
+ cleanCache();
+
+ forceFlag = true;
+ }}>Refresh</button
+ >
+ {/if}
</ListTitle>
{:else}
- <ListTitle {progress} title={$locale().lists.due.mangaAndLightNovels} />
+ <ListTitle
+ {progress}
+ title={$locale().lists.due.mangaAndLightNovels}
+ hideTime={dummy}
+ hideCount={dummy}
+ />
{/if}
<Skeleton card={false} count={lastListSize} height="0.9rem" list />
@@ -293,19 +306,32 @@
/>
{:else}
{#if !authorised}
- <ListTitle count={0} time={endTime / 1000} title={$locale().lists.due.mangaAndLightNovels}>
- <button
- data-umami-event="Force Refresh Manga"
- title="Force a full refresh"
- on:click={() => {
- cleanCache();
-
- forceFlag = true;
- }}>Refresh</button
- >
+ <ListTitle
+ count={0}
+ time={endTime / 1000}
+ title={$locale().lists.due.mangaAndLightNovels}
+ hideTime={dummy}
+ hideCount={dummy}
+ >
+ {#if !dummy}
+ <button
+ data-umami-event="Force Refresh Manga"
+ title="Force a full refresh"
+ on:click={() => {
+ cleanCache();
+
+ forceFlag = true;
+ }}>Refresh</button
+ >
+ {/if}
</ListTitle>
{:else}
- <ListTitle {progress} title={$locale().lists.due.mangaAndLightNovels} />
+ <ListTitle
+ {progress}
+ title={$locale().lists.due.mangaAndLightNovels}
+ hideTime={dummy}
+ hideCount={dummy}
+ />
{/if}
<Skeleton card={false} count={lastListSize} height="0.9rem" list />
@@ -316,16 +342,20 @@
count={cleanedMedia.length}
time={endTime / 1000}
title={$locale().lists.due.mangaAndLightNovels}
+ hideTime={dummy}
+ hideCount={dummy}
>
- <button
- data-umami-event="Force Refresh Manga"
- title="Force a full refresh"
- on:click={() => {
- cleanCache();
-
- forceFlag = true;
- }}>Refresh</button
- >
+ {#if !dummy}
+ <button
+ data-umami-event="Force Refresh Manga"
+ title="Force a full refresh"
+ on:click={() => {
+ cleanCache();
+
+ forceFlag = true;
+ }}>Refresh</button
+ >
+ {/if}
</ListTitle>
{/if}
@@ -343,7 +373,13 @@
/>
{:catch}
{#if authorised}
- <ListTitle count={-1337} time={0} title={$locale().lists.due.mangaAndLightNovels} />
+ <ListTitle
+ count={-1337}
+ time={0}
+ title={$locale().lists.due.mangaAndLightNovels}
+ hideTime={dummy}
+ hideCount={dummy}
+ />
{/if}
<Error list={false} />