diff --git a/src/dashboard/components/Rules.svelte b/src/dashboard/components/Rules.svelte index abe7ff3..6c26758 100644 --- a/src/dashboard/components/Rules.svelte +++ b/src/dashboard/components/Rules.svelte @@ -1,10 +1,43 @@ -{#each rules as rule} +{#each rules as rule, i}
{dj.duration(...rule.limit).humanize()} / {dj.duration(...rule.every).humanize()}
+ {#await percentages[i]} + loading + {:then percentage} +
+
+
+ {/await} {/each} diff --git a/src/dashboard/pages/Limits.svelte b/src/dashboard/pages/Limits.svelte index f583d56..09e9296 100644 --- a/src/dashboard/pages/Limits.svelte +++ b/src/dashboard/pages/Limits.svelte @@ -46,15 +46,15 @@ {#if Array.isArray(limits)} - + - + {#each limits as { host, rules, _id }}
HostHost RulesActionsActions
{host} - +