diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 28f4de008..db34b393c 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1095,6 +1095,7 @@ item: list: List diary: Diary tags: Tags + wasteBreakdown: Waste breakdown itemCreate: New item descriptor: item: Item diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 2660902c0..cb5876dd3 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -1094,6 +1094,7 @@ item: list: Listado diary: Histórico tags: Etiquetas + wasteBreakdown: Deglose de mermas itemCreate: Nuevo artículo descriptor: item: Artículo diff --git a/src/router/modules/item.js b/src/router/modules/item.js index 3dc8a1e6b..41f3ec92a 100644 --- a/src/router/modules/item.js +++ b/src/router/modules/item.js @@ -10,7 +10,7 @@ export default { component: RouterView, redirect: { name: 'ItemMain' }, menus: { - main: ['ItemList'], + main: ['ItemList', 'WasteBreakdown'], card: ['ItemBasicData'], }, children: [ @@ -37,6 +37,19 @@ export default { }, component: () => import('src/pages/Item/ItemCreate.vue'), }, + { + path: 'waste-breakdown', + name: 'WasteBreakdown', + meta: { + title: 'wasteBreakdown', + icon: 'vn:claims', + }, + beforeEnter: (to, from, next) => { + next({ name: 'ItemList' }); + window.location.href = + 'https://grafana.verdnatura.es/d/TTNXQAxVk'; + }, + }, ], }, {