MT#62769 The sendFax icon appears in the PBX Configuration even if the functionality is not enabled

The Send Fax icon was displayed in the PBX Configuration
even when the functionality was not enabled in the fax settings.

This was caused by the ability to activate
the feature at the seat or group level.

The logic has been corrected, and the Send Fax functionality
now appears only when it is properly enabled for the user.

Change-Id: I02358f12eaf1a5543d2c6552e21d4452c56acdc6
(cherry picked from commit dcfecc4327)
(cherry picked from commit 7580d1d13a)
mr12.5.1
nidrissi-zouggari 6 months ago committed by Nouhaila Idrissi-Zouggari
parent b5ceba0ac7
commit 33c78ff288

@ -163,6 +163,10 @@ export default {
id: {
type: String,
default: ''
},
isPbxConfigurationContext: {
type: Boolean,
default: false
}
},
data () {
@ -212,7 +216,7 @@ export default {
},
async setChangedData (field, value) {
try {
await this.faxServerSettingsUpdateAction({ field, value, id: this.id })
await this.faxServerSettingsUpdateAction({ field, value, id: this.id, fromPbxConfiguration: this.isPbxConfigurationContext })
this.updateDataFromStore()
} catch (err) {
showGlobalError(err?.message)

@ -275,6 +275,7 @@
v-if="selectedTab === 'fax2mail'"
:id="id"
:key="id"
:is-pbx-configuration-context="true"
/>
<csc-mail-to-fax-settings
v-if="selectedTab === 'mail2fax'"

@ -358,6 +358,7 @@
v-if="selectedTab === 'fax2mail'"
:id="id"
:key="id"
:is-pbx-configuration-context="true"
/>
<csc-mail-to-fax-settings
v-if="selectedTab === 'mail2fax'"

@ -51,7 +51,9 @@ export default {
context.commit('settingsSucceeded', {
faxServerSettings
})
context.commit('user/updateFaxActiveCapabilityState', faxServerSettings.active, { root: true })
if (!options.fromPbxConfiguration) {
context.commit('user/updateFaxActiveCapabilityState', faxServerSettings.active, { root: true })
}
},
async loadMailToFaxSettingsAction (context, id) {

Loading…
Cancel
Save