From ba9d8b3c217240cdb4cf49f7fb84bebf1695b3d8 Mon Sep 17 00:00:00 2001 From: alexandre Date: Tue, 2 May 2023 07:22:09 +0200 Subject: [PATCH] refs #4797 section code refactored --- src/i18n/es/index.js | 4 +- .../Card/WorkerNotificationsManager.vue | 413 +++++++----------- src/router/modules/worker.js | 4 +- 3 files changed, 173 insertions(+), 248 deletions(-) diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 41c556dc8..6328c8f5d 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -398,8 +398,8 @@ export default { notificationsManager: { activeNotifications: 'Notificaciones activas', availableNotifications: 'Notificaciones disponibles', - subscribed: 'Te has suscrito a la notificación', - unsubscribed: 'Te has dado de baja de la notificación', + subscribed: 'Se ha suscrito a la notificación', + unsubscribed: 'Se ha dado de baja de la notificación', }, imageNotFound: 'No se ha encontrado la imagen', }, diff --git a/src/pages/Worker/Card/WorkerNotificationsManager.vue b/src/pages/Worker/Card/WorkerNotificationsManager.vue index 37a0bb5c6..511144ff0 100644 --- a/src/pages/Worker/Card/WorkerNotificationsManager.vue +++ b/src/pages/Worker/Card/WorkerNotificationsManager.vue @@ -1,10 +1,9 @@ diff --git a/src/router/modules/worker.js b/src/router/modules/worker.js index b6abd7c7e..17a937c64 100644 --- a/src/router/modules/worker.js +++ b/src/router/modules/worker.js @@ -11,7 +11,7 @@ export default { redirect: { name: 'WorkerMain' }, menus: { main: ['WorkerList'], - card: [], + card: ['WorkerNotificationsManager'], }, children: [ { @@ -42,6 +42,7 @@ export default { path: 'summary', meta: { title: 'summary', + icon: 'launch', }, component: () => import('src/pages/Worker/Card/WorkerSummary.vue'), }, @@ -50,6 +51,7 @@ export default { path: 'notifications', meta: { title: 'notifications', + icon: 'notifications', }, component: () => import('src/pages/Worker/Card/WorkerNotificationsManager.vue'), },