From e967d8d20c6972b64b0096594a09043553e9c7e5 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Thu, 21 Nov 2024 16:59:48 +0100 Subject: [PATCH] feat(dashboard): reorder menu items --- src/components/dashboard/Dashboard.svelte | 126 +++++++++++----------- 1 file changed, 63 insertions(+), 63 deletions(-) diff --git a/src/components/dashboard/Dashboard.svelte b/src/components/dashboard/Dashboard.svelte index a9b1f9d3..3c5aabfb 100644 --- a/src/components/dashboard/Dashboard.svelte +++ b/src/components/dashboard/Dashboard.svelte @@ -40,69 +40,6 @@ {$_("dashboard-title")} - {#if store.state.jwtinfo.userdetails.permissions.includes("ORGANIZATION:GET")} - - - - {$_("orgs")} - - {/if} - {#if store.state.jwtinfo.userdetails.permissions.includes("USER:GET")} - - - - {$_("users")} - - {/if} - {#if store.state.jwtinfo.userdetails.permissions.includes("USERGROUP:GET")} - - - {$_("user-groups")} - - {/if} {#if store.state.jwtinfo.userdetails.permissions.includes("RUNNER:GET")} {$_("teams")} {/if} + {#if store.state.jwtinfo.userdetails.permissions.includes("ORGANIZATION:GET")} + + + + {$_("orgs")} + + {/if} {#if store.state.jwtinfo.userdetails.permissions.includes("DONOR:GET")} {$_("statsclients")} {/if} + {#if store.state.jwtinfo.userdetails.permissions.includes("USER:GET")} + + + + {$_("users")} + + {/if} + {#if store.state.jwtinfo.userdetails.permissions.includes("USERGROUP:GET")} + + + {$_("user-groups")} + + {/if}