Migrate header components

This commit is contained in:
Christoph Kluge 2025-06-13 14:46:09 +02:00
parent eabd7b8d51
commit b7823cec16
2 changed files with 16 additions and 10 deletions

View File

@ -18,10 +18,13 @@
DropdownItem,
} from "@sveltestrap/sveltestrap";
export let clusters;
export let subClusters;
export let links;
export let direction = "down";
/* Svelte 5 Props */
let {
clusters,
subClusters,
links,
direction = "down"
} = $props();
</script>
{#each links as item}

View File

@ -25,10 +25,13 @@
Col,
} from "@sveltestrap/sveltestrap";
export let username;
export let authlevel;
export let roles;
export let screenSize;
/* Svelte 5 Props */
let {
username,
authlevel,
roles,
screenSize
} = $props();
</script>
<Nav navbar>
@ -91,7 +94,7 @@
<NavItem>
<Button
outline
on:click={() => (window.location.href = "/config")}
onclick={() => (window.location.href = "/config")}
style="margin-left: 10px;"
title="Settings"
>
@ -136,7 +139,7 @@
<Col xs="4">
<Button
outline
on:click={() => (window.location.href = "/config")}
onclick={() => (window.location.href = "/config")}
size="sm"
class="my-2 w-100"
>