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,