diff --git a/svelte/src/user_home/StorageProgressBar.svelte b/svelte/src/user_home/StorageProgressBar.svelte index 9df6cc6..2deeb1e 100644 --- a/svelte/src/user_home/StorageProgressBar.svelte +++ b/svelte/src/user_home/StorageProgressBar.svelte @@ -4,6 +4,7 @@ import ProgressBar from "../util/ProgressBar.svelte"; export let total = 0 export let used = 0 +export let disable_warnings = false $: frac = used / total @@ -21,46 +22,50 @@ $: frac = used / total -{#if frac > 2.0} -
- You are using more than 200% of your allowed storage space! -

- We have started deleting your files to free up space. If you do not - want to lose any more files please upgrade to a subscription which - supports the volume of storage which you need. -

- - bolt Upgrade options - -
-{:else if frac > 1.0} -
-

- You have used all of your storage space. You won't be able to - upload new files anymore. Please upgrade to a higher support - tier to continue uploading files. -

- - bolt Upgrade options - -

- Your files will not be deleted any sooner than normal at this - moment. When your storage usage is over 200% we will start - deleting your files to free up the space. -

-
-{:else if frac > 0.8} -
-

- You have used {(frac*100).toFixed(0)}% of your - storage space. If your storage space runs out you won't be able - to upload new files anymore. Please upgrade to a higher support - tier to continue uploading files. -

- - bolt Upgrade options - -
+{#if !disable_warnings} + {#if frac > 2.0} +
+ + You are using more than 200% of your allowed storage space! + +

+ We have started deleting your files to free up space. If you do not + want to lose any more files please upgrade to a subscription which + supports the volume of storage which you need. +

+ + bolt Upgrade options + +
+ {:else if frac > 1.0} +
+

+ You have used all of your storage space. You won't be able to + upload new files anymore. Please upgrade to a higher support + tier to continue uploading files. +

+ + bolt Upgrade options + +

+ Your files will not be deleted any sooner than normal at this + moment. When your storage usage is over 200% we will start + deleting your files to free up the space. +

+
+ {:else if frac > 0.8} +
+

+ You have used {(frac*100).toFixed(0)}% of your + storage space. If your storage space runs out you won't be able + to upload new files anymore. Please upgrade to a higher support + tier to continue uploading files. +

+ + bolt Upgrade options + +
+ {/if} {/if}