MT#63399 Remove Obsolete Subscriber Profile Attributes

Remove the following obsolete attributes from the
Subscriber Profiles list in the Admin UI:
- rerouting_mode
- rerouting_codes
- fileshare
- sms

Change-Id: I6074322155329ad9d9c15f65782f3ae76eac7848
master
Debora Crescenzo 1 month ago committed by Crescenzo Debora
parent 72d36d22ab
commit 8f721d2ffc

@ -148,7 +148,6 @@ Each menu item includes a `visible` property that determines whether it should b
3. **Platform and User Capability Checks** - Verifies that the ngcp platform has the necessary modules activated and that the module is enabled for the user. This check also incudes the license check for the feature:
- `this.isFaxFeatureEnabled()` checks if the fax feature is enabled in the platform, if it is enabled for the user and if the license fax is active. Note, this doesn't include the checks about fax server settings.
- `this.isPbxEnabled()` checks if the pbx feature is enabled in the platform, if it's enabled for the user and if the license pbx is active.
- `this.isSmsEnabled()` checks if the sms feature is enabled in the platform, if it's enabled for the user and if the license sms is active.
**IMPORTANT** The Menu Item Visibility Logic needs to be aligned with with Route Guards

@ -178,8 +178,7 @@ export default {
]),
...mapGetters('user', [
'isFaxFeatureEnabled',
'hasSubscriberProfileAttribute',
'isSmsEnabled'
'hasSubscriberProfileAttribute'
]),
...mapState('user', [
'platformInfo'
@ -225,10 +224,10 @@ export default {
label: this.$t('Voicemail'),
value: 'voicemail'
}] : []),
...(this.isSmsEnabled ? [{
{
label: this.$t('Sms'),
value: 'sms'
}] : []),
},
...(this.isFaxFeatureEnabled ? [{
label: this.$t('Fax'),
value: 'fax'

@ -50,7 +50,7 @@ export const PROFILE_ATTRIBUTES_MAP = {
callSettings: ['music_on_hold', 'language'],
pbxSettings: ['auto_attendant', 'cloud_pbx_callqueue', 'max_queue_length', 'queue_wrap_up_time', 'manager_secretary'],
pbxSettingsCallQueue: ['cloud_pbx_callqueue', 'max_queue_length', 'queue_wrap_up_time'],
callForwarding: ['cfu', 'cfb', 'cfna', 'cft', 'cfs', 'cfo', 'cfr', 'rerouting_mode', 'rerouting_codes']
callForwarding: ['cfu', 'cfb', 'cfna', 'cft', 'cfs', 'cfo', 'cfr']
}
export const LICENSES = {
@ -66,6 +66,5 @@ export const FEATURES = {
cloudPbx: 'cloudpbx',
sms: 'sms',
faxServer: 'faxserver',
fileShare: 'fileshare',
mobilePush: 'mobilepush'
}

@ -123,11 +123,6 @@ export default {
return state?.platformInfo?.[feature]
}
},
isSmsEnabled (state) {
return state?.platformInfo?.sms &&
state?.capabilities?.sms &&
state?.platformInfo?.licenses?.includes(LICENSES.sms)
},
isFaxFeatureEnabled (state, getters) {
return state?.capabilities?.faxserver &&
state?.platformInfo?.faxserver &&

Loading…
Cancel
Save