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 2971827b0a)
mr11.5
nidrissi-zouggari 2 months ago
parent 1c88d60911
commit 3e608080e3

@ -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 {

@ -81,33 +81,6 @@
<csc-popup-menu-item-delete
@click="deleteSeat"
/>
<q-separator />
<q-item
class="no-padding"
>
<q-item-section>
<q-toggle
v-model="changes.clirIntrapbx"
class="q-pa-sm"
:label="$t('Hide number within own PBX')"
:disable="loading"
@update:model-value="changeIntraPbx"
/>
</q-item-section>
</q-item>
<q-item
class="no-padding"
>
<q-item-section>
<q-toggle
v-model="changes.musicOnHold"
class="q-pa-sm"
:label="$t('Music on hold')"
:disable="loading"
@update:model-value="changeMusicOnHold"
/>
</q-item-section>
</q-item>
</csc-more-menu>
</q-item-section>
</q-item>
@ -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)
}

@ -101,13 +101,6 @@
/>
</template>
</q-select>
<q-toggle
v-model="data.clirIntrapbx"
:label="$t('Hide number within own PBX')"
:disable="loading"
class="q-pa-md"
dense
/>
</div>
<div
class="col-xs-12 col-lg-3"
@ -396,8 +389,7 @@ export default {
},
aliasNumbers: [],
groups: [],
soundSet: null,
clirIntrapbx: false
soundSet: null
}
},
cancel () {
@ -413,8 +405,7 @@ export default {
sipPassword: this.data.sipPassword.password,
aliasNumbers: this.data.aliasNumbers,
groups: this.data.groups,
soundSet: this.data.soundSet,
clirIntrapbx: this.data.clirIntrapbx
soundSet: this.data.soundSet
})
},
reset () {

@ -77,7 +77,6 @@
:class="'col-xs-12 col-md-6 col-lg-4 csc-item-' + ((index % 2 === 0)?'odd':'even')"
:seat="seat"
:intra-pbx="getIntraPbx(seat.id)"
:music-on-hold="getMusicOnHold(seat.id)"
:groups="groupMapById"
:loading="isSeatLoading(seat.id)"
@remove="openSeatRemovalDialog(seat.id)"
@ -175,7 +174,6 @@ export default {
'isSeatRemoving',
'isSeatLoading',
'getIntraPbx',
'getMusicOnHold',
'getSeatRemoveDialogMessage',
'getSeatCreationToastMessage',
'getSeatRemovalToastMessage',

Loading…
Cancel
Save