mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-25 02:05:51 +02:00
working on the frontend
This commit is contained in:
12
web/src/lib/components/user-details.svelte
Normal file
12
web/src/lib/components/user-details.svelte
Normal file
@@ -0,0 +1,12 @@
|
||||
<script lang="ts">
|
||||
import {getContext} from "svelte";
|
||||
|
||||
const user: () => App.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}
|
||||
Reference in New Issue
Block a user