From 068076dd47373c673a25e730cb8a57c686682810 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Thu, 2 Feb 2023 17:03:18 +0100 Subject: [PATCH] Added Statsclients to sidebar ref #143 --- src/components/dashboard/Dashboard.svelte | 20 ++++++++++++++++++++ src/locales/de.json | 2 +- src/locales/en.json | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/components/dashboard/Dashboard.svelte b/src/components/dashboard/Dashboard.svelte index 2a56a5e3..f6ebf1f9 100644 --- a/src/components/dashboard/Dashboard.svelte +++ b/src/components/dashboard/Dashboard.svelte @@ -256,6 +256,26 @@ {$_('scanstations')} {/if} + {#if store.state.jwtinfo.userdetails.permissions.includes('STATSCLIENT:GET')} + + + + {$_('statsclients')} + + {/if}