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
mr13.4
nidrissi-zouggari 5 months ago committed by Nouhaila Idrissi-Zouggari
parent a1f165df62
commit dcfecc4327

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

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

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

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

Loading…
Cancel
Save