mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-25 07:47:56 -07:00
fix bottom links reactivity
This commit is contained in:
parent
736fd8da9d
commit
d85428ddf8
1 changed files with 13 additions and 10 deletions
|
@ -16,7 +16,7 @@
|
|||
absolute
|
||||
:top-link="topLinks"
|
||||
:secondary-links="cookbookLinks || []"
|
||||
:bottom-links="isAdmin ? bottomLinks : []"
|
||||
:bottom-links="bottomLinks"
|
||||
>
|
||||
<v-menu
|
||||
offset-y
|
||||
|
@ -228,14 +228,18 @@ export default defineNuxtComponent({
|
|||
},
|
||||
]);
|
||||
|
||||
const bottomLinks = computed<SideBarLink[]>(() => [
|
||||
const bottomLinks = computed<SideBarLink[]>(() =>
|
||||
isAdmin.value
|
||||
? [
|
||||
{
|
||||
icon: $globals.icons.cog,
|
||||
title: i18n.t("general.settings"),
|
||||
to: "/admin/site-settings",
|
||||
restricted: true,
|
||||
},
|
||||
]);
|
||||
]
|
||||
: []
|
||||
);
|
||||
|
||||
const topLinks = computed<SideBarLink[]>(() => [
|
||||
{
|
||||
|
@ -307,7 +311,6 @@ export default defineNuxtComponent({
|
|||
createLinks,
|
||||
bottomLinks,
|
||||
topLinks,
|
||||
isAdmin,
|
||||
isOwnGroup,
|
||||
languageDialog,
|
||||
toggleDark,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue