diff options
Diffstat (limited to 'src/lib/List/Manga/MangaListTemplate.svelte')
| -rw-r--r-- | src/lib/List/Manga/MangaListTemplate.svelte | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte index daa3a27b..52649098 100644 --- a/src/lib/List/Manga/MangaListTemplate.svelte +++ b/src/lib/List/Manga/MangaListTemplate.svelte @@ -15,8 +15,6 @@ import { chapterCount, hydrateChapterCounts } from "$lib/Media/Manga/chapters"; import { options } from "$lib/Notification/options"; import { addNotification } from "$lib/Notification/store"; import privilegedUser from "$lib/Utility/privilegedUser"; -import { executiveCopy, executiveTitle } from "$lib/Utility/executiveMode"; -import aprilFools from "$stores/aprilFools"; import identity from "$stores/identity"; import lastPruneTimes from "$stores/lastPruneTimes"; import locale from "$stores/locale"; @@ -52,13 +50,6 @@ let keyCacher: ReturnType<typeof setInterval> | undefined; let keyCacheMinutes = -1; let nativeEnhancementVersion = 0; let nativeEnhancementKey = ""; -const mangaListTitle = () => - executiveTitle( - $aprilFools, - due - ? $locale().lists.due.mangaAndLightNovels - : $locale().lists.completed.mangaAndLightNovels, - ); $: authorised = env.PUBLIC_ALWAYS_REFRESH_MANGA === "true" || privilegedUser($identity.id); @@ -375,26 +366,26 @@ const cleanCache = () => { <ListTitle count={0} time={endTime / 1000} - title={mangaListTitle()} + title={$locale().lists.due.mangaAndLightNovels} hideTime={dummy} hideCount={dummy} > {#if !dummy} <button data-umami-event="Force Refresh Manga" - title={executiveCopy($aprilFools, "Force refresh")} + title="Force a full refresh" onclick={() => { cleanCache(); forceFlag = true; - }}>{executiveCopy($aprilFools, "Refresh")}</button + }}>Refresh</button > {/if} </ListTitle> {:else} <ListTitle {progress} - title={mangaListTitle()} + title={$locale().lists.due.mangaAndLightNovels} hideTime={dummy} hideCount={dummy} /> @@ -424,26 +415,26 @@ const cleanCache = () => { <ListTitle count={0} time={endTime / 1000} - title={mangaListTitle()} + title={$locale().lists.due.mangaAndLightNovels} hideTime={dummy} hideCount={dummy} > {#if !dummy} <button data-umami-event="Force Refresh Manga" - title={executiveCopy($aprilFools, "Force refresh")} + title="Force a full refresh" onclick={() => { cleanCache(); forceFlag = true; - }}>{executiveCopy($aprilFools, "Refresh")}</button + }}>Refresh</button > {/if} </ListTitle> {:else} <ListTitle {progress} - title={mangaListTitle()} + title={$locale().lists.due.mangaAndLightNovels} hideTime={dummy} hideCount={dummy} /> @@ -456,19 +447,19 @@ const cleanCache = () => { <ListTitle count={cleanedMedia.length} time={endTime / 1000} - title={mangaListTitle()} + title={$locale().lists.due.mangaAndLightNovels} hideTime={dummy} hideCount={dummy} > {#if !dummy} <button data-umami-event="Force Refresh Manga" - title={executiveCopy($aprilFools, "Force refresh")} + title="Force a full refresh" onclick={() => { cleanCache(); forceFlag = true; - }}>{executiveCopy($aprilFools, "Refresh")}</button + }}>Refresh</button > {/if} </ListTitle> @@ -493,7 +484,7 @@ const cleanCache = () => { <ListTitle count={-1337} time={0} - title={mangaListTitle()} + title={$locale().lists.due.mangaAndLightNovels} hideTime={dummy} hideCount={dummy} /> |