add managed projects, update navbar layout, fix small issues

This commit is contained in:
Christoph Kluge
2024-10-09 11:08:14 +02:00
parent f4102b948e
commit bc434ee8cb
2 changed files with 103 additions and 61 deletions

View File

@@ -4,6 +4,7 @@
Properties:
- `clusters [String]`: List of cluster names
- `links [Object]`: Pre-filtered link objects based on user auth
- `direction String?`: The direcion of the drop-down menue [default: down]
-->
<script>
@@ -18,11 +19,12 @@
export let clusters;
export let links;
export let direction = "down";
</script>
{#each links as item}
{#if item.listOptions}
<Dropdown nav inNavbar>
<Dropdown nav inNavbar {direction}>
<DropdownToggle nav caret>
<Icon name={item.icon} />
{item.title}
@@ -60,7 +62,7 @@
><Icon name={item.icon} /> {item.title}</NavLink
>
{:else}
<Dropdown nav inNavbar>
<Dropdown nav inNavbar {direction}>
<DropdownToggle nav caret>
<Icon name={item.icon} />
{item.title}