From dd191ffb33a52e533e4a228e7bcd35df459ce374 Mon Sep 17 00:00:00 2001 From: Hans-Peter Herzog Date: Thu, 24 Sep 2020 11:00:32 +0200 Subject: [PATCH] TT#94801 Fix intra pbx flag in PBXConfig Change-Id: I2dc59ee6092331eb74a7005e92864406b41fa8ec --- src/components/CscMainMenuTop.vue | 9 ++- .../pages/Conference/CscConferenceJoin.vue | 2 +- .../NewCallForward/CscCallForwardGroup.vue | 2 +- .../NewCallForward/CscNewCallForward.vue | 2 +- .../pages/PbxConfiguration/CscPbxDevices.vue | 2 +- .../pages/PbxConfiguration/CscPbxGroups.vue | 2 +- .../pages/PbxConfiguration/CscPbxSeat.vue | 2 +- .../pages/PbxConfiguration/CscPbxSeats.vue | 2 +- .../pages/PbxConfiguration/CscPbxSoundSet.vue | 2 +- .../PbxConfiguration/CscPbxSoundSetSound.vue | 2 +- .../PbxConfiguration/CscPbxSoundSets.vue | 2 +- .../pages/PbxSettings/CscPbxSettings.vue | 66 +++++++++---------- src/router/routes.js | 12 +++- 13 files changed, 58 insertions(+), 49 deletions(-) diff --git a/src/components/CscMainMenuTop.vue b/src/components/CscMainMenuTop.vue index eeb8e340..4a5692ed 100644 --- a/src/components/CscMainMenuTop.vue +++ b/src/components/CscMainMenuTop.vue @@ -45,7 +45,8 @@ export default { }, computed: { ...mapGetters('user', [ - 'isRtcEngineUiVisible' + 'isRtcEngineUiVisible', + 'isPbxEnabled' ]), items () { return [ @@ -182,6 +183,12 @@ export default { visible: true } ] + }, + { + to: '/user/pbx-settings', + icon: 'settings', + label: this.$t('navigation.pbxSettings.title'), + visible: this.isPbxEnabled } ] } diff --git a/src/components/pages/Conference/CscConferenceJoin.vue b/src/components/pages/Conference/CscConferenceJoin.vue index c3e559dc..d124f131 100644 --- a/src/components/pages/Conference/CscConferenceJoin.vue +++ b/src/components/pages/Conference/CscConferenceJoin.vue @@ -19,7 +19,7 @@ :value="conferenceIdInput" :placeholder="$t('conferencing.idPlaceholder')" :disable="isJoining || !hasRtcEngineCapabilityEnabled" - @change="conferenceIdChanged" + @input="conferenceIdChanged" > @@ -39,8 +40,11 @@ import { import { RequestState } from 'src/store/common' +import CscSpinner from 'components/CscSpinner' +import { getSubscriberId } from 'src/auth' export default { components: { + CscSpinner, CscPage }, data () { @@ -51,8 +55,7 @@ export default { }, async mounted () { this.requestInProgress(true) - const subscriberId = localStorage.getItem('subscriberId') - const preferences = await this.loadPreferences(subscriberId) + const preferences = await this.loadPreferences(getSubscriberId()) this.clirIntrapbx = preferences.clir_intrapbx this.requestInProgress(false) }, @@ -90,7 +93,7 @@ export default { changeIntraPbx () { const msg = this.clirIntrapbx ? this.$t('pbxConfig.selfPbxHidden') : this.$t('pbxConfig.selfPbxVisible') this.setIntraPbx({ - seatId: localStorage.getItem('subscriberId'), + seatId: getSubscriberId(), intraPbx: this.clirIntrapbx, message: msg }) @@ -101,12 +104,3 @@ export default { } } - - diff --git a/src/router/routes.js b/src/router/routes.js index a0b0d911..8e83c3c8 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -18,6 +18,7 @@ import PbxConfigurationDevices from 'src/components/pages/PbxConfiguration/CscPb import PbxConfigurationCallQueues from 'src/components/pages/PbxConfiguration/CscPbxCallQueues' import PbxConfigurationSoundSets from 'src/components/pages/PbxConfiguration/CscPbxSoundSets' import PbxConfigurationMsConfigs from 'src/components/pages/PbxConfiguration/CscPbxMsConfigs' +import CscPbxSettings from 'src/components/pages/PbxSettings/CscPbxSettings' import Voicebox from 'src/components/pages/Voicebox/CscPageVoicebox' import Login from 'src/components/CscPageLogin' import CscUserSettings from 'src/components/pages/CscUserSettings' @@ -176,6 +177,14 @@ export default function routes (app) { title: i18n.t('navigation.userSettings.title'), subtitle: i18n.t('navigation.userSettings.subTitle') } + }, + { + path: 'pbx-settings', + component: CscPbxSettings, + meta: { + title: i18n.t('navigation.pbxSettings.title'), + subtitle: i18n.t('navigation.pbxSettings.subTitle') + } } ] }, @@ -221,7 +230,6 @@ export default function routes (app) { // { path: '', component: () => import('pages/Index.vue') } // ] // }, -// // // Always leave this as last one, // // but you can also remove it // { @@ -229,5 +237,5 @@ export default function routes (app) { // component: () => import('pages/Error404.vue') // } // ] - +// // export default routes