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