From 9ebbb89ad2577e6e57d4de27595289efc006f061 Mon Sep 17 00:00:00 2001 From: nidrissi-zouggari Date: Tue, 13 May 2025 15:30:21 +0200 Subject: [PATCH] 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 dcfecc4327769301e8f254426cfc08a78ce2690e) (cherry picked from commit b87bf0a46bddede21bd057155c6a78b0387b204c) --- src/components/pages/FaxSettings/CscFaxToMailSettings.vue | 6 +++++- src/pages/CscPagePbxGroupDetails.vue | 1 + src/pages/CscPagePbxSeatDetails.vue | 1 + src/store/fax.js | 4 +++- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/pages/FaxSettings/CscFaxToMailSettings.vue b/src/components/pages/FaxSettings/CscFaxToMailSettings.vue index 608a9795..1f1b4f09 100644 --- a/src/components/pages/FaxSettings/CscFaxToMailSettings.vue +++ b/src/components/pages/FaxSettings/CscFaxToMailSettings.vue @@ -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) diff --git a/src/pages/CscPagePbxGroupDetails.vue b/src/pages/CscPagePbxGroupDetails.vue index 019c3f15..2f6b4d03 100644 --- a/src/pages/CscPagePbxGroupDetails.vue +++ b/src/pages/CscPagePbxGroupDetails.vue @@ -253,6 +253,7 @@ v-if="selectedTab === 'fax2mail'" :id="id" :key="id" + :is-pbx-configuration-context="true" />