diff --git a/src/components/LeftMenu.vue b/src/components/LeftMenu.vue index 019e75f4b..1721adfec 100644 --- a/src/components/LeftMenu.vue +++ b/src/components/LeftMenu.vue @@ -212,6 +212,7 @@ async function togglePinned(item, event) { clickable :icon="item.icon" :label="t(item.title)" + :content-inset-level="0.5" > diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js index 9a1abc8bd..716b0fa6c 100644 --- a/src/router/modules/customer.js +++ b/src/router/modules/customer.js @@ -352,7 +352,7 @@ export default { meta: { title: 'creditManagement', icon: 'paid', - children: [ + menuChildren: [ { name: 'CustomerCreditContracts', title: 'creditContracts', diff --git a/src/stores/useNavigationStore.js b/src/stores/useNavigationStore.js index aa3e95a1a..1da7ca25c 100644 --- a/src/stores/useNavigationStore.js +++ b/src/stores/useNavigationStore.js @@ -52,9 +52,9 @@ export const useNavigationStore = defineStore('navigationStore', () => { function addMenuItem(module, route, parent) { const { meta } = route; - let { children = null } = meta; - if (children) - children = children.map(({ name, title, icon }) => ({ + let { menuChildren = null } = meta; + if (menuChildren) + menuChildren = menuChildren.map(({ name, title, icon }) => ({ name, icon, title: `${module}.pageTitles.${title}`, @@ -64,7 +64,7 @@ export const useNavigationStore = defineStore('navigationStore', () => { const item = { name: route.name, - children: children, + children: menuChildren, }; if (meta) { item.title = `${module}.pageTitles.${meta.title}`;