1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-05 13:35:23 +02:00

refactor(frontend): ♻️ split user profile/management (#670)

* refactor(frontend): ♻️ major rewrite/improvement of use-profile pages

* refactor(frontend): ♻️ split webhooks into their own page

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden 2021-09-04 20:24:32 -08:00 committed by GitHub
parent 3d87ffc3a5
commit e179dcdb10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 723 additions and 796 deletions

View file

@ -46,28 +46,6 @@ export default defineComponent({
return {
sidebar: null,
topLinks: [
{
icon: this.$globals.icons.user,
to: "/user/profile",
title: this.$t("sidebar.profile"),
},
{
icon: this.$globals.icons.group,
to: "/user/group",
title: this.$t("group.group"),
},
{
icon: this.$globals.icons.pages,
to: "/user/group/cookbooks",
title: this.$t("sidebar.cookbooks"),
},
{
icon: this.$globals.icons.webhook,
to: "/user/group/webhooks",
title: "Webhooks",
},
],
adminLinks: [
{
icon: this.$globals.icons.viewDashboard,
to: "/admin/dashboard",
@ -157,9 +135,6 @@ export default defineComponent({
],
};
},
head: {
title: "Admin",
},
});
</script>

View file

@ -8,7 +8,7 @@
:top-link="topLinks"
secondary-header="Cookbooks"
:secondary-links="cookbookLinks || []"
:bottom-links="bottomLink"
:bottom-links="$auth.user.admin ? bottomLink : []"
@input="sidebar = !sidebar"
/>
@ -62,7 +62,7 @@ export default defineComponent({
{
icon: this.$globals.icons.cog,
title: this.$t("general.settings"),
to: "/user/profile",
to: "/admin/dashboard",
restricted: true,
},
],