From 17f2345b30856248ff4c697569fb0be563f93606 Mon Sep 17 00:00:00 2001 From: "CORP\\hzigha" Date: Fri, 2 Jul 2021 14:45:29 +0200 Subject: [PATCH] TT#124272 AutoAttendant - As PBX-Attendant (Pilot, Seat, Group), I can change my AutoAttendant configuration Change-Id: If6238f053f44e4b880dfbbe03d8b44e5e65ce8d9 --- src/components/CscMainMenuTop.vue | 17 +- .../CscPbxSettingsAutoAttendant.vue | 162 +++++++++++++ src/pages/CscPagePbxSettingsAutoAttendant.vue | 215 ++++++++++++++++++ src/router/routes.js | 15 +- 4 files changed, 406 insertions(+), 3 deletions(-) create mode 100644 src/components/pages/PbxSettings/CscPbxSettingsAutoAttendant.vue create mode 100644 src/pages/CscPagePbxSettingsAutoAttendant.vue diff --git a/src/components/CscMainMenuTop.vue b/src/components/CscMainMenuTop.vue index 9a31480f..72ec8f4d 100644 --- a/src/components/CscMainMenuTop.vue +++ b/src/components/CscMainMenuTop.vue @@ -195,10 +195,23 @@ export default { ] }, { - to: '/user/pbx-settings', icon: 'settings', label: this.$t('PBX Settings'), - visible: this.isPbxEnabled && this.hasSubscriberProfileAttribute(PROFILE_ATTRIBUTE_MAP.pbxSettings) + visible: this.isPbxEnabled && this.hasSubscriberProfileAttribute(PROFILE_ATTRIBUTE_MAP.pbxSettings), + children: [ + { + to: '/user/pbx-settings/general', + icon: 'settings', + label: this.$t('General'), + visible: true + }, + { + to: '/user/pbx-settings/auto-attendant', + icon: 'dialpad', + label: this.$t('Auto-attendant'), + visible: true + } + ] }, { to: '/user/registered-devices', diff --git a/src/components/pages/PbxSettings/CscPbxSettingsAutoAttendant.vue b/src/components/pages/PbxSettings/CscPbxSettingsAutoAttendant.vue new file mode 100644 index 00000000..02f065ed --- /dev/null +++ b/src/components/pages/PbxSettings/CscPbxSettingsAutoAttendant.vue @@ -0,0 +1,162 @@ + + + diff --git a/src/pages/CscPagePbxSettingsAutoAttendant.vue b/src/pages/CscPagePbxSettingsAutoAttendant.vue new file mode 100644 index 00000000..6b430aba --- /dev/null +++ b/src/pages/CscPagePbxSettingsAutoAttendant.vue @@ -0,0 +1,215 @@ + + diff --git a/src/router/routes.js b/src/router/routes.js index 0b592550..fd1c21f9 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -29,6 +29,7 @@ import CscRecoverPassword from 'src/pages/CscRecoverPassword' import CscPageCf from 'pages/CscPageCf' import CscPageCallSettings from 'pages/CscPageCallSettings' import CscPageRegisteredDevices from 'pages/CscPageRegisteredDevices' +import CscPagePbxSettingsAutoAttendant from 'pages/CscPagePbxSettingsAutoAttendant' const getToken = (route) => { return { @@ -293,7 +294,7 @@ export default function routes (app) { } }, { - path: 'pbx-settings', + path: 'pbx-settings/general', component: CscPagePbxSettings, meta: { get title () { @@ -305,6 +306,18 @@ export default function routes (app) { profileAttribute: PROFILE_ATTRIBUTE_MAP.pbxSettings } }, + { + path: 'pbx-settings/auto-attendant', + component: CscPagePbxSettingsAutoAttendant, + meta: { + get title () { + return i18n.t('PBX Settings') + }, + get subtitle () { + return i18n.t('Auto-attendant') + } + } + }, { path: 'registered-devices', component: CscPageRegisteredDevices,