From e8bf266e5f487f7c444baf16bbabf1f4e4c2bdad Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 10 Dec 2023 02:19:28 -0800
Subject: feat(mangadex): add safe rate limits

---
 src/lib/List/Manga/CleanMangaList.svelte | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src/lib/List/Manga/CleanMangaList.svelte')

diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte
index 8f36f244..40082809 100644
--- a/src/lib/List/Manga/CleanMangaList.svelte
+++ b/src/lib/List/Manga/CleanMangaList.svelte
@@ -1,5 +1,6 @@
 <script lang="ts">
 	import type { Media } from '$lib/AniList/media';
+	import Error from '$lib/Error.svelte';
 	import { volumeCount } from '$lib/Media/manga';
 	import { outboundLink } from '$lib/Media/media';
 	import settings from '../../../stores/settings';
@@ -17,12 +18,17 @@
 	) => Promise<void>;
 	export let pendingUpdate: number | null;
 	export let due: boolean;
+	export let rateLimited: boolean;
 </script>
 
 <ListTitle count={media.length} time={endTime / 1000}>
 	<a href={'#'} title="Force a full refresh" on:click={cleanCache}>Refresh</a>
 </ListTitle>
 
+{#if rateLimited}
+	<Error />
+{/if}
+
 {#if media.length === 0}
 	<ul>
 		<li>No manga to display. <a href={'#'} on:click={cleanCache}>Force refresh</a></li>
-- 
cgit v1.2.3

