From 6d7e3d2d04c05d46fbabadf505b05f09dc1ae4ae Mon Sep 17 00:00:00 2001 From: Jake Fulmine Date: Sun, 18 Feb 2024 14:37:57 +0100 Subject: [PATCH] feat(dashboard): more randomization options! --- dashboard/src/components/list/CardView.svelte | 4 +-- dashboard/src/components/list/TextView.svelte | 2 +- dashboard/src/components/list/TinyView.svelte | 4 +-- dashboard/src/routes/Dash/Random.svelte | 33 +++++++------------ 4 files changed, 17 insertions(+), 26 deletions(-) diff --git a/dashboard/src/components/list/CardView.svelte b/dashboard/src/components/list/CardView.svelte index 9c568d7b..e3c34f5d 100644 --- a/dashboard/src/components/list/CardView.svelte +++ b/dashboard/src/components/list/CardView.svelte @@ -49,7 +49,7 @@ {#if pageOptions.type === "member"} - {#each currentList as item (item.uuid)} + {#each currentList as item, index (pageOptions.randomized ? item.uuid + '-' + index : item.uuid)}
{/each} {:else if pageOptions.type === "group"} - {#each currentList as item (item.uuid)} + {#each currentList as item, index (pageOptions.randomized ? item.uuid + '-' + index : item.uuid)}