MT#56403 Align PBX Configuration visibility with assigned profile

Items in the general 'Call Settings' section were already
shown/hidden accordingly to what defined in the profile
assigned to the subscriber.
This didn't happen for settings inside the 'PBX Configuration'
section

Change-Id: Icddf20b6c311af7ea29f1ffce7b357041d853c85
pull/27/merge
Marco Capetta 2 years ago
parent cc3c5bd862
commit 2f415cf0b3

@ -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)
}
]
},

@ -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
}
},
{

Loading…
Cancel
Save