Skip to content

Commit 8f721d2

Browse files
committed
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
1 parent 72d36d2 commit 8f721d2

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

doc/router-navigation-guard.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ Each menu item includes a `visible` property that determines whether it should b
148148
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:
149149
- `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.
150150
- `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.
151-
- `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.
152151
153152
**IMPORTANT** The Menu Item Visibility Logic needs to be aligned with with Route Guards
154153

src/components/pages/PbxStatistics/CscCdrFilters.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ export default {
178178
]),
179179
...mapGetters('user', [
180180
'isFaxFeatureEnabled',
181-
'hasSubscriberProfileAttribute',
182-
'isSmsEnabled'
181+
'hasSubscriberProfileAttribute'
183182
]),
184183
...mapState('user', [
185184
'platformInfo'
@@ -225,10 +224,10 @@ export default {
225224
label: this.$t('Voicemail'),
226225
value: 'voicemail'
227226
}] : []),
228-
...(this.isSmsEnabled ? [{
227+
{
229228
label: this.$t('Sms'),
230229
value: 'sms'
231-
}] : []),
230+
},
232231
...(this.isFaxFeatureEnabled ? [{
233232
label: this.$t('Fax'),
234233
value: 'fax'

src/constants.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const PROFILE_ATTRIBUTES_MAP = {
5050
callSettings: ['music_on_hold', 'language'],
5151
pbxSettings: ['auto_attendant', 'cloud_pbx_callqueue', 'max_queue_length', 'queue_wrap_up_time', 'manager_secretary'],
5252
pbxSettingsCallQueue: ['cloud_pbx_callqueue', 'max_queue_length', 'queue_wrap_up_time'],
53-
callForwarding: ['cfu', 'cfb', 'cfna', 'cft', 'cfs', 'cfo', 'cfr', 'rerouting_mode', 'rerouting_codes']
53+
callForwarding: ['cfu', 'cfb', 'cfna', 'cft', 'cfs', 'cfo', 'cfr']
5454
}
5555

5656
export const LICENSES = {
@@ -66,6 +66,5 @@ export const FEATURES = {
6666
cloudPbx: 'cloudpbx',
6767
sms: 'sms',
6868
faxServer: 'faxserver',
69-
fileShare: 'fileshare',
7069
mobilePush: 'mobilepush'
7170
}

src/store/user.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ export default {
123123
return state?.platformInfo?.[feature]
124124
}
125125
},
126-
isSmsEnabled (state) {
127-
return state?.platformInfo?.sms &&
128-
state?.capabilities?.sms &&
129-
state?.platformInfo?.licenses?.includes(LICENSES.sms)
130-
},
131126
isFaxFeatureEnabled (state, getters) {
132127
return state?.capabilities?.faxserver &&
133128
state?.platformInfo?.faxserver &&

0 commit comments

Comments
 (0)