From 350da23aa318c02935c586fc179f577bf7ffdab2 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 | 61 ------------------- .../PbxConfiguration/CscPbxSeatAddForm.vue | 13 +--- src/pages/CscPagePbxSeats.vue | 2 - 4 files changed, 2 insertions(+), 75 deletions(-) diff --git a/src/api/pbx-seats.js b/src/api/pbx-seats.js index c3619f24..544f2837 100644 --- a/src/api/pbx-seats.js +++ b/src/api/pbx-seats.js @@ -154,7 +154,6 @@ export async function createSeat (seat) { }, { forceCli: seat.forceCli }) }).then(($subscriberId) => { subscriberId = $subscriberId - setSeatIntraPbx(subscriberId, seat.clirIntrapbx) if (seat.soundSet !== null && seat.soundSet !== undefined) { return getSoundSet(seat.soundSet) } diff --git a/src/components/pages/PbxConfiguration/CscPbxSeat.vue b/src/components/pages/PbxConfiguration/CscPbxSeat.vue index 5213ce71..f7657ac3 100644 --- a/src/components/pages/PbxConfiguration/CscPbxSeat.vue +++ b/src/components/pages/PbxConfiguration/CscPbxSeat.vue @@ -81,35 +81,6 @@ - - - - - - - - - - - @@ -121,8 +92,6 @@ import CscMoreMenu from 'components/CscMoreMenu' import CscPopupMenuItem from 'components/CscPopupMenuItem' import CscPopupMenuItemDelete from 'components/CscPopupMenuItemDelete' import _ from 'lodash' -import { PROFILE_ATTRIBUTES_MAP, PROFILE_ATTRIBUTE_MAP } from 'src/constants' -import { mapGetters } from 'vuex' export default { name: 'CscPbxSeat', components: { @@ -146,10 +115,6 @@ export default { loading: { type: Boolean, default: undefined - }, - musicOnHold: { - type: Boolean, - default: undefined } }, emits: ['save-intra-pbx', 'save-music-on-hold', 'remove'], @@ -158,18 +123,6 @@ export default { changes: this.getSeatData() } }, - computed: { - ...mapGetters('user', [ - 'hasSubscriberProfileAttribute', - 'hasSomeSubscriberProfileAttributes' - ]), - showClirIntraPbx () { - return this.hasSubscriberProfileAttribute(PROFILE_ATTRIBUTE_MAP.clir_intrapbx) - }, - showMusicOnHold () { - return this.hasSomeSubscriberProfileAttributes(PROFILE_ATTRIBUTES_MAP.callSettings) - } - }, watch: { seat () { this.changes = this.getSeatData() @@ -184,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() } }, @@ -231,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 8d90a459..a6d73afe 100644 --- a/src/components/pages/PbxConfiguration/CscPbxSeatAddForm.vue +++ b/src/components/pages/PbxConfiguration/CscPbxSeatAddForm.vue @@ -111,13 +111,6 @@ /> -