diff options
Diffstat (limited to 'src/lib/Error')
| -rw-r--r-- | src/lib/Error/RateLimited.svelte | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/lib/Error/RateLimited.svelte b/src/lib/Error/RateLimited.svelte index b00bbd11..bdddc3c0 100644 --- a/src/lib/Error/RateLimited.svelte +++ b/src/lib/Error/RateLimited.svelte @@ -4,6 +4,7 @@ export let contact = true; export let list = true; export let card = false; + export let might = true; </script> <div class:card> @@ -11,8 +12,10 @@ <ul> <li> <p> - {type} could not be loaded. You might have been - <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank">rate limited</a>. + {type} could not be loaded. You{might ? ' might' : ''} have been + <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank">rate limited</a>. {#if !might} + Try again in one minute. + {/if} </p> {#if loginSessionError} @@ -24,9 +27,9 @@ <slot /> - <p /> - {#if contact} + <p /> + If the problem persists, please contact <a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList. {/if} @@ -34,8 +37,10 @@ </ul> {:else} <p> - {type} could not be loaded. You might have been - <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank">rate limited</a>. + {type} could not be loaded. You{might ? ' might' : ''} have been + <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank">rate limited</a>. {#if !might} + Try again in one minute. + {/if} </p> {#if loginSessionError} @@ -47,9 +52,9 @@ <slot /> - <p /> - {#if contact} + <p /> + If the problem persists, please contact <a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList. {/if} |