Added Statsclients to sidebar

ref #143
This commit is contained in:
Nicolai Ort 2023-02-02 17:03:18 +01:00
parent 02158605be
commit 068076dd47
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
3 changed files with 22 additions and 2 deletions

View File

@ -256,6 +256,26 @@
<span>{$_('scanstations')}</span> <span>{$_('scanstations')}</span>
</a> </a>
{/if} {/if}
{#if store.state.jwtinfo.userdetails.permissions.includes('STATSCLIENT:GET')}
<a
class:bg-gray-100={$router.path === '/statsclients/'}
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
href="/statsclients/">
<svg
class="flex-shrink-0 w-5 h-5 mr-2 text-gray-400 transition group-hover:text-gray-600"
fill="currentColor"
width="24"
height="24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"><path
fill="none"
d="M0 0h24v24H0z" />
<path
fill="currentColor"
d="M4 5v11h16V5H4zM2 4a1 1 0 011-1h18a1 1 0 011 1v14H2V4zM1 19h22v2H1v-2z" /></svg>
<span>{$_('statsclients')}</span>
</a>
{/if}
<a <a
class:bg-gray-100={$router.path === '/settings/'} class:bg-gray-100={$router.path === '/settings/'}
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900" class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"

View File

@ -458,7 +458,7 @@
"you-have-to-save-your-changes-to-generate-a-link": "Du musst deine Änderungen speichern, um einen Link zu generieren.", "you-have-to-save-your-changes-to-generate-a-link": "Du musst deine Änderungen speichern, um einen Link zu generieren.",
"you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen (oder abbrechen).", "you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen (oder abbrechen).",
"zip-postal-code": "Postleitzahl", "zip-postal-code": "Postleitzahl",
"statsclients": "Beamershow (aka Statsclient)", "statsclients": "Statsclient (aka Beamershow)",
"create-a-new-statsclient": "Neuen Statsclient erstellen", "create-a-new-statsclient": "Neuen Statsclient erstellen",
"statsclients-are-being-loaded": "Statsclients werden geladen", "statsclients-are-being-loaded": "Statsclients werden geladen",
"prefix": "Prefix", "prefix": "Prefix",

View File

@ -459,7 +459,7 @@
"you-have-to-save-your-changes-to-generate-a-link": "You have to save your changes to generate a link.", "you-have-to-save-your-changes-to-generate-a-link": "You have to save your changes to generate a link.",
"you-must-create-at-least-one-card-or-cancel": "You must create at least one card (or cancel).", "you-must-create-at-least-one-card-or-cancel": "You must create at least one card (or cancel).",
"zip-postal-code": "ZIP/ postal code", "zip-postal-code": "ZIP/ postal code",
"statsclients": "Beamershow (aka statsclient)", "statsclients": "Statsclients (aka Beamershow)",
"create-a-new-statsclient": "Create a new statsclient", "create-a-new-statsclient": "Create a new statsclient",
"statsclients-are-being-loaded": "Loading statsclients", "statsclients-are-being-loaded": "Loading statsclients",
"prefix": "Prefix", "prefix": "Prefix",