From b71e5cf2fb23e0aa260bad025a605b47c7109109 Mon Sep 17 00:00:00 2001 From: Marie Date: Fri, 22 Dec 2023 11:51:43 +0100 Subject: [PATCH] fix: avatar decoration role not working Closes #150 --- packages/frontend/src/router.ts | 4 ++++ packages/frontend/src/ui/_common_/common.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/router.ts b/packages/frontend/src/router.ts index d06b6019b3..b148325c71 100644 --- a/packages/frontend/src/router.ts +++ b/packages/frontend/src/router.ts @@ -307,6 +307,10 @@ export const routes = [{ }, { path: '/channels', component: page(() => import('./pages/channels.vue')), +}, { + path: '/avatar-decorations', + name: 'avatarDecorations', + component: page(() => import('./pages/avatar-decorations.vue')), }, { path: '/custom-emojis-manager', component: page(() => import('./pages/custom-emojis-manager.vue')), diff --git a/packages/frontend/src/ui/_common_/common.ts b/packages/frontend/src/ui/_common_/common.ts index 7a3f643561..d153f776dd 100644 --- a/packages/frontend/src/ui/_common_/common.ts +++ b/packages/frontend/src/ui/_common_/common.ts @@ -34,7 +34,7 @@ function toolsMenuItems(): MenuItem[] { icon: 'ph-smiley ph-bold ph-lg', } : undefined, ($i && ($i.isAdmin || $i.policies.canManageAvatarDecorations)) ? { type: 'link', - to: '/admin/avatar-decorations', + to: '/avatar-decorations', text: i18n.ts.manageAvatarDecorations, icon: 'ph-sparkle ph-bold ph-lg', } : undefined];