mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-25 02:05:51 +02:00
working on the frontend, adding torrent page, working on show directory, working on the api
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
<script lang="ts">
|
||||
import {getContext} from "svelte";
|
||||
import {getContext} from 'svelte';
|
||||
import type {User} from '$lib/types';
|
||||
|
||||
const user: () => App.User = getContext("user")
|
||||
const user: () => User = getContext('user');
|
||||
</script>
|
||||
|
||||
<span class="truncate font-semibold">{user().email}</span>
|
||||
{#if user().is_superuser}
|
||||
<span class="truncate text-xs">Administrator</span>
|
||||
{:else }
|
||||
<span class="truncate text-xs">User</span>
|
||||
{/if}
|
||||
<span class="truncate text-xs">Administrator</span>
|
||||
{:else}
|
||||
<span class="truncate text-xs">User</span>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user