mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-01 11:13:50 +02:00
Migrate header components
This commit is contained in:
parent
eabd7b8d51
commit
b7823cec16
@ -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}
|
||||
|
@ -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"
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user