do not show servers to non admins
This commit is contained in:
@@ -159,32 +159,34 @@
|
|||||||
<path d="M16 15c-2.21 1.333 -5.792 1.333 -8 0" />
|
<path d="M16 15c-2.21 1.333 -5.792 1.333 -8 0" />
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
<a
|
{#if $appSession.teamId === '0'}
|
||||||
id="servers"
|
<a
|
||||||
sveltekit:prefetch
|
id="servers"
|
||||||
href="/servers"
|
sveltekit:prefetch
|
||||||
class="icons hover:text-white"
|
href="/servers"
|
||||||
class:text-white={$page.url.pathname === '/servers'}
|
class="icons hover:text-white"
|
||||||
class:bg-coolgray-500={$page.url.pathname === '/servers'}
|
class:text-white={$page.url.pathname === '/servers'}
|
||||||
class:bg-coolgray-200={!($page.url.pathname === '/servers')}
|
class:bg-coolgray-500={$page.url.pathname === '/servers'}
|
||||||
>
|
class:bg-coolgray-200={!($page.url.pathname === '/servers')}
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
class="w-8 h-8 mx-auto"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
stroke-width="1.5"
|
|
||||||
stroke="currentColor"
|
|
||||||
fill="none"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
>
|
>
|
||||||
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
<svg
|
||||||
<rect x="3" y="4" width="18" height="8" rx="3" />
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
<rect x="3" y="12" width="18" height="8" rx="3" />
|
class="w-8 h-8 mx-auto"
|
||||||
<line x1="7" y1="8" x2="7" y2="8.01" />
|
viewBox="0 0 24 24"
|
||||||
<line x1="7" y1="16" x2="7" y2="16.01" />
|
stroke-width="1.5"
|
||||||
</svg>
|
stroke="currentColor"
|
||||||
</a>
|
fill="none"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
>
|
||||||
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
||||||
|
<rect x="3" y="4" width="18" height="8" rx="3" />
|
||||||
|
<rect x="3" y="12" width="18" height="8" rx="3" />
|
||||||
|
<line x1="7" y1="8" x2="7" y2="8.01" />
|
||||||
|
<line x1="7" y1="16" x2="7" y2="16.01" />
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<Tooltip triggeredBy="#dashboard" placement="right">Dashboard</Tooltip>
|
<Tooltip triggeredBy="#dashboard" placement="right">Dashboard</Tooltip>
|
||||||
<Tooltip triggeredBy="#servers" placement="right">Servers</Tooltip>
|
<Tooltip triggeredBy="#servers" placement="right">Servers</Tooltip>
|
||||||
|
|||||||
@@ -23,6 +23,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let servers: any;
|
export let servers: any;
|
||||||
import { appSession } from '$lib/store';
|
import { appSession } from '$lib/store';
|
||||||
|
import { goto } from '$app/navigation';
|
||||||
|
if ($appSession.teamId !== '0') {
|
||||||
|
goto('/');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex space-x-1 p-6 font-bold">
|
<div class="flex space-x-1 p-6 font-bold">
|
||||||
@@ -42,7 +46,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<h1 class="">Nothing here.</h1>
|
<h1 class="text-center text-xs">Nothing here.</h1>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="text-xs text-center">Remote servers will be here soon</div>
|
<div class="text-xs text-center">Remote servers will be here soon</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user