Compare commits
2 Commits
02158605be
...
f3cc07c009
Author | SHA1 | Date | |
---|---|---|---|
f3cc07c009 | |||
068076dd47 |
@ -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"
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<script>
|
<script>
|
||||||
import { _ } from "svelte-i18n";
|
import { _ } from "svelte-i18n";
|
||||||
import store from "../../store";
|
import store from "../../store";
|
||||||
import AddStatsClientsModal from "./AddStatsClientsModal.svelte";
|
import AddStatsClientModal from "./AddStatsClientModal.svelte";
|
||||||
import CopyStatsClientsTokenModal from "./CopyStatsClientsTokenModal.svelte";
|
// import CopyStatsClientsTokenModal from "./CopyStatsClientsTokenModal.svelte";
|
||||||
import StatsClientssOverview from "./StatsClientsOverview.svelte";
|
import StatsClientssOverview from "./StatsClientsOverview.svelte";
|
||||||
export let modal_open = false;
|
export let modal_open = false;
|
||||||
export let copy_modal_open = false;
|
export let copy_modal_open = false;
|
||||||
export let new_station = {};
|
export let new_client = {};
|
||||||
let current_stations = [];
|
let current_clients = [];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="container p-5">
|
<section class="container p-5">
|
||||||
@ -24,10 +24,10 @@ import CopyStatsClientsTokenModal from "./CopyStatsClientsTokenModal.svelte";
|
|||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
<StatsClientssOverview bind:current_stations bind:modal_open bind:new_station bind:copy_modal_open />
|
<StatsClientssOverview bind:current_clients bind:modal_open bind:new_client bind:copy_modal_open />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{#if store.state.jwtinfo.userdetails.permissions.includes('STATSCLIENT:CREATE')}
|
{#if store.state.jwtinfo.userdetails.permissions.includes('STATSCLIENT:CREATE')}
|
||||||
<AddStatsClientsModal bind:modal_open bind:current_stations bind:new_station bind:copy_modal_open/>
|
<AddStatsClientModal bind:modal_open bind:current_clients bind:new_client bind:copy_modal_open/>
|
||||||
<CopyStatsClientsTokenModal bind:copy_modal_open bind:new_station />
|
<!-- <CopyStatsClientsTokenModal bind:copy_modal_open bind:new_client /> -->
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user