From 33c78ff288f831a39a4f3188e6d34a38d2d33bc8 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 7580d1d13af0c4bec8b00f03042a0d03813f62c8) --- 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 fd7a468b..33c6c524 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 1be4329c..d47dfb28 100644 --- a/src/pages/CscPagePbxGroupDetails.vue +++ b/src/pages/CscPagePbxGroupDetails.vue @@ -275,6 +275,7 @@ v-if="selectedTab === 'fax2mail'" :id="id" :key="id" + :is-pbx-configuration-context="true" />