From baaf6b6c74c338b68f02cd84414c2e3913d4664d Mon Sep 17 00:00:00 2001 From: Pau Navarro Date: Wed, 23 Nov 2022 14:50:05 +0100 Subject: [PATCH] refs #4797 @6h --- src/i18n/en/index.js | 10 ++ src/i18n/es/index.js | 5 + src/pages/Worker/Card/WorkerCard.vue | 6 + src/pages/Worker/Card/WorkerDescriptor.vue | 4 +- .../Card/WorkerNotificationsManager.vue | 170 ++++++++++++++++++ src/router/modules/worker.js | 8 + 6 files changed, 200 insertions(+), 3 deletions(-) create mode 100644 src/pages/Worker/Card/WorkerNotificationsManager.vue diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 5d41cf88a..18fcf78c3 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -255,6 +255,7 @@ export default { list: 'List', basicData: 'Basic data', summary: 'Summary', + notifications: 'Notifications', }, list: { name: 'Name', @@ -288,6 +289,15 @@ export default { role: 'Role', sipExtension: 'Extension', }, + notificationsManager: { + activeNotifications: 'Active notifications', + availableNotifications: 'Available notifications', + table: { + name: 'Permission description', + subscribed: 'Subscribed', + role: 'Necessary role', + } + }, }, components: { topbar: {}, diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 2b810b399..c079c0629 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -253,6 +253,7 @@ export default { list: 'Listado', basicData: 'Datos básicos', summary: 'Resumen', + notifications: 'Notificaciones' }, list: { name: 'Nombre', @@ -286,6 +287,10 @@ export default { role: 'Rol', sipExtension: 'Extensión', }, + notificationsManager: { + activeNotifications: 'Notificaciones activas', + availableNotifications: 'Notificaciones disponibles', + }, }, components: { topbar: {}, diff --git a/src/pages/Worker/Card/WorkerCard.vue b/src/pages/Worker/Card/WorkerCard.vue index b014e9b7f..23677f0f6 100644 --- a/src/pages/Worker/Card/WorkerCard.vue +++ b/src/pages/Worker/Card/WorkerCard.vue @@ -18,6 +18,12 @@ const { t } = useI18n(); {{ t('worker.pageTitles.basicData') }} + + + + + {{ t('worker.pageTitles.notifications') }} + diff --git a/src/pages/Worker/Card/WorkerDescriptor.vue b/src/pages/Worker/Card/WorkerDescriptor.vue index 1308264c0..5746f220a 100644 --- a/src/pages/Worker/Card/WorkerDescriptor.vue +++ b/src/pages/Worker/Card/WorkerDescriptor.vue @@ -1,5 +1,5 @@ + diff --git a/src/router/modules/worker.js b/src/router/modules/worker.js index d5703d04b..0c5e45b42 100644 --- a/src/router/modules/worker.js +++ b/src/router/modules/worker.js @@ -41,6 +41,14 @@ export default { }, component: () => import('src/pages/Worker/Card/WorkerSummary.vue'), }, + { + name: 'WorkerNotificationsManager', + path: 'notifications', + meta: { + title: 'notifications' + }, + component: () => import('src/pages/Worker/Card/WorkerNotificationsManager.vue'), + }, ] }, ]