diff --git a/src/router/index.js b/src/router/index.js index 8a7f9e36..e8510bb8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -63,6 +63,20 @@ const invites = { ] } +const emojiPacksDisabled = disabledFeatures.includes('emoji-packs') +const emojiPacks = { + path: '/emoji_packs', + component: Layout, + children: [ + { + path: 'index', + component: () => import('@/views/emojiPacks/index'), + name: 'Emoji Packs', + meta: { title: 'Emoji Packs', icon: 'eye-open', noCache: true } + } + ] +} + const moderationLogDisabled = disabledFeatures.includes('moderation-log') const moderationLog = { path: '/moderation_log', @@ -143,6 +157,7 @@ export const asyncRouterMap = [ ...(statusesDisabled ? [] : [statuses]), ...(reportsDisabled ? [] : [reports]), ...(invitesDisabled ? [] : [invites]), + ...(emojiPacksDisabled ? [] : [emojiPacks]), ...(moderationLogDisabled ? [] : [moderationLog]), ...(settingsDisabled ? [] : [settings]), { diff --git a/src/views/emojiPacks/index.vue b/src/views/emojiPacks/index.vue index 4be41add..6d0d8292 100644 --- a/src/views/emojiPacks/index.vue +++ b/src/views/emojiPacks/index.vue @@ -1,5 +1,6 @@