From 3e608080e36b5d99da5fb45a6dec37151a96b4b4 Mon Sep 17 00:00:00 2001 From: nidrissi-zouggari Date: Tue, 14 Apr 2026 14:31:52 +0200 Subject: [PATCH] MT#64678 Remove unnecessary preferences from PBX Seats creation form and actions menu - Removed "Hide number within own PBX" from PBX Seat creation form - Removed "Hide number within own PBX" from PBX Seats actions menu - Removed "Music on hold" from PBX Seats actions menu These preferences are now only configurable in the PBX Seat details to avoid duplication and simplify the UI. Change-Id: I8c9c8967bf4039f02b5848dea33285d04b0451c1 (cherry picked from commit 2971827b0acd7c790fbabc5e8b7b96ef0c634d79) --- src/api/pbx-seats.js | 1 - .../pages/PbxConfiguration/CscPbxSeat.vue | 45 ------------------- .../PbxConfiguration/CscPbxSeatAddForm.vue | 13 +----- src/pages/CscPagePbxSeats.vue | 2 - 4 files changed, 2 insertions(+), 59 deletions(-) diff --git a/src/api/pbx-seats.js b/src/api/pbx-seats.js index ac3aba47..e9a8b458 100644 --- a/src/api/pbx-seats.js +++ b/src/api/pbx-seats.js @@ -152,7 +152,6 @@ export function createSeat (seat) { }) }).then(($subscriberId) => { subscriberId = $subscriberId - setSeatIntraPbx(subscriberId, seat.clirIntrapbx) if (seat.soundSet !== null && seat.soundSet !== undefined) { return getSoundSet(seat.soundSet) } else { diff --git a/src/components/pages/PbxConfiguration/CscPbxSeat.vue b/src/components/pages/PbxConfiguration/CscPbxSeat.vue index 27731c46..842cc4bd 100644 --- a/src/components/pages/PbxConfiguration/CscPbxSeat.vue +++ b/src/components/pages/PbxConfiguration/CscPbxSeat.vue @@ -81,33 +81,6 @@ - - - - - - - - - - - @@ -142,10 +115,6 @@ export default { loading: { type: Boolean, default: undefined - }, - musicOnHold: { - type: Boolean, - default: undefined } }, emits: ['save-intra-pbx', 'save-music-on-hold', 'remove'], @@ -168,8 +137,6 @@ export default { name: this.seat.display_name, extension: this.seat.pbx_extension, webPassword: this.seat.webpassword, - clirIntrapbx: this.intraPbx, - musicOnHold: this.musicOnHold, groups: this.getGroupIds() } }, @@ -215,18 +182,6 @@ export default { seatSIPPassword: password }) }, - changeIntraPbx () { - this.$emit('save-intra-pbx', { - seatId: this.seat.id, - intraPbx: this.changes.clirIntrapbx - }) - }, - changeMusicOnHold () { - this.$emit('save-music-on-hold', { - seatId: this.seat.id, - musicOnHold: this.changes.musicOnHold - }) - }, showSeatDetails () { this.$router.push('/user/pbx-configuration/seat/' + this.seat.id) } diff --git a/src/components/pages/PbxConfiguration/CscPbxSeatAddForm.vue b/src/components/pages/PbxConfiguration/CscPbxSeatAddForm.vue index a020e213..5b495005 100644 --- a/src/components/pages/PbxConfiguration/CscPbxSeatAddForm.vue +++ b/src/components/pages/PbxConfiguration/CscPbxSeatAddForm.vue @@ -101,13 +101,6 @@ /> -