diff --git a/src/components/CscMainMenuTop.vue b/src/components/CscMainMenuTop.vue index 02801ba3..55410127 100644 --- a/src/components/CscMainMenuTop.vue +++ b/src/components/CscMainMenuTop.vue @@ -171,7 +171,7 @@ export default { to: '/user/pbx-configuration/call-queues', icon: 'filter_none', label: this.$t('Call Queues'), - visible: true + visible: this.hasSubscriberProfileAttributes(PROFILE_ATTRIBUTES_MAP.pbxSettingsCallQueue) }, { to: '/user/pbx-configuration/sound-sets', @@ -183,13 +183,13 @@ export default { to: '/user/pbx-configuration/ms-configs', icon: 'arrow_forward', label: this.$t('Manager Secretary'), - visible: true + visible: this.hasSubscriberProfileAttribute(PROFILE_ATTRIBUTE_MAP.manager_secretary) }, { to: '/user/pbx-configuration/auto-attendant', icon: 'dialpad', label: this.$t('Auto-attendant'), - visible: true + visible: this.hasSubscriberProfileAttribute(PROFILE_ATTRIBUTE_MAP.auto_attendant) } ] }, diff --git a/src/router/routes.js b/src/router/routes.js index 34c80cf0..7d9c49ca 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -236,7 +236,8 @@ export default function routes (app) { }, get subtitle () { return i18n.t('Call Queues') - } + }, + profileAttributes: PROFILE_ATTRIBUTES_MAP.pbxSettingsCallQueue } }, { @@ -260,7 +261,8 @@ export default function routes (app) { }, get subtitle () { return i18n.t('Manager Secretary') - } + }, + profileAttribute: PROFILE_ATTRIBUTE_MAP.manager_secretary } }, { @@ -272,7 +274,8 @@ export default function routes (app) { }, get subtitle () { return i18n.t('Auto-attendant') - } + }, + profileAttribute: PROFILE_ATTRIBUTE_MAP.auto_attendant } }, {