- Add a dedicated admin entry (with icon) to the header profile dropdown, visible only to admins - Move all user-management settings from SettingsDialog/ProfileDialog into a new AdminDialog - Export AdminDialog from the package index Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
25 lines
519 B
Svelte
25 lines
519 B
Svelte
<script lang="ts">
|
|
import type { Snippet } from 'svelte';
|
|
import Dialog from './Dialog.svelte';
|
|
|
|
let {
|
|
children,
|
|
description = '',
|
|
open = $bindable(false),
|
|
title = 'Settings'
|
|
}: {
|
|
children?: Snippet;
|
|
description?: string;
|
|
open?: boolean;
|
|
title?: string;
|
|
} = $props();
|
|
</script>
|
|
|
|
<Dialog bind:open {description} {title}>
|
|
{#if children}
|
|
{@render children()}
|
|
{:else}
|
|
<p class="sc-muted">No settings have been configured for this application yet.</p>
|
|
{/if}
|
|
</Dialog>
|