mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-21 22:13:31 -07:00
fix(ui): adjust menu item order in drawer
This commit is contained in:
parent
5cb3c5fb5a
commit
117c6b9948
1 changed files with 28 additions and 25 deletions
|
@ -286,24 +286,39 @@ export default defineNuxtComponent({
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const bottomLinks = computed<SideBarLink[]>(() =>
|
const bottomLinks = computed<SideBarLink[]>(() => {
|
||||||
isAdmin.value
|
const links: SideBarLink[] = [];
|
||||||
? [
|
links.push(
|
||||||
{
|
{
|
||||||
icon: $globals.icons.cog,
|
icon: $globals.icons.book,
|
||||||
title: i18n.t("general.settings"),
|
to: `/g/${groupSlug.value}/cookbooks`,
|
||||||
to: "/admin/site-settings",
|
title: i18n.t("sidebar.cookbooks"),
|
||||||
|
restricted: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: $globals.icons.timelineText,
|
||||||
|
title: i18n.t("recipe.timeline"),
|
||||||
|
to: `/g/${groupSlug.value}/recipes/timeline`,
|
||||||
restricted: true,
|
restricted: true,
|
||||||
},
|
},
|
||||||
]
|
|
||||||
: [],
|
|
||||||
);
|
);
|
||||||
|
if (isAdmin.value) {
|
||||||
|
links.push({
|
||||||
|
icon: $globals.icons.cog,
|
||||||
|
title: i18n.t("sidebar.site-settings"),
|
||||||
|
to: "/admin/site-settings",
|
||||||
|
restricted: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return links;
|
||||||
|
});
|
||||||
|
|
||||||
const topLinks = computed<SideBarLink[]>(() => [
|
const topLinks = computed<SideBarLink[]>(() => [
|
||||||
{
|
{
|
||||||
icon: $globals.icons.silverwareForkKnife,
|
icon: $globals.icons.silverwareForkKnife,
|
||||||
to: `/g/${groupSlug.value}`,
|
to: `/g/${groupSlug.value}`,
|
||||||
title: i18n.t("general.recipes"),
|
title: i18n.t("sidebar.all-recipes"),
|
||||||
restricted: false,
|
restricted: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -324,18 +339,6 @@ export default defineNuxtComponent({
|
||||||
to: "/shopping-lists",
|
to: "/shopping-lists",
|
||||||
restricted: true,
|
restricted: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
icon: $globals.icons.timelineText,
|
|
||||||
title: i18n.t("recipe.timeline"),
|
|
||||||
to: `/g/${groupSlug.value}/recipes/timeline`,
|
|
||||||
restricted: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
icon: $globals.icons.book,
|
|
||||||
to: `/g/${groupSlug.value}/cookbooks`,
|
|
||||||
title: i18n.t("cookbook.cookbooks"),
|
|
||||||
restricted: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
icon: $globals.icons.organizers,
|
icon: $globals.icons.organizers,
|
||||||
title: i18n.t("general.organizers"),
|
title: i18n.t("general.organizers"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue