diff --git a/src/components/pages/NewCallForward/CscNewCallForward.vue b/src/components/pages/NewCallForward/CscNewCallForward.vue
index 322f643a..efeda645 100644
--- a/src/components/pages/NewCallForward/CscNewCallForward.vue
+++ b/src/components/pages/NewCallForward/CscNewCallForward.vue
@@ -23,7 +23,7 @@
-
+
+
+
+
+
+
+
+
+
+
@@ -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