1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00

Convert main nav to use an ActionGroup

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-16 12:40:34 +02:00
parent e8376435dd
commit 1a53a3cb45
2 changed files with 12 additions and 12 deletions

View file

@ -59,7 +59,9 @@
{/if}
</button>
<style>
</style>
<style>
span {
text-transform: capitalize;
}
</style>

View file

@ -1,7 +1,7 @@
<script>
import { store, automationStore } from "builderStore"
import { roles } from "stores/backend"
import { Button } from "@budibase/bbui"
import { Button, ActionGroup, ActionButton, Icon } from "@budibase/bbui"
import SettingsLink from "components/settings/Link.svelte"
import ThemeEditorDropdown from "components/settings/ThemeEditorDropdown.svelte"
import FeedbackNavLink from "components/feedback/FeedbackNavLink.svelte"
@ -60,14 +60,11 @@
</button>
<!-- This gets all indexable subroutes and sticks them in the top nav. -->
{#each $layout.children as { path, title }}
<span
class:active={$isActive(path)}
class="topnavitem"
on:click={topItemNavigate(path)}>
{title}
</span>
{/each}
<ActionGroup>
{#each $layout.children as { path, title }}
<ActionButton quiet selected={$isActive(path)} on:click={topItemNavigate(path)}>{title}</ActionButton>
{/each}
</ActionGroup>
</div>
<div class="toprightnav">
<ThemeEditorDropdown />
@ -76,6 +73,7 @@
<a
target="_blank"
href="https://github.com/Budibase/budibase/discussions">
<Icon />
<i class="ri-github-fill" />
</a>
</div>