bugfix/shelving-154 #168

Merged
alexm merged 28 commits from :bugfix/shelving-154 into dev 2024-02-08 17:28:05 +00:00
3 changed files with 6 additions and 5 deletions
Showing only changes of commit e9fe4a3cb9 - Show all commits

View File

@ -212,6 +212,7 @@ async function togglePinned(item, event) {
clickable
:icon="item.icon"
:label="t(item.title)"
:content-inset-level="0.5"
>
<LeftMenuItemGroup :item="item" />
</QExpansionItem>

View File

@ -352,7 +352,7 @@ export default {
meta: {
title: 'creditManagement',
icon: 'paid',
children: [
menuChildren: [
{
name: 'CustomerCreditContracts',
title: 'creditContracts',

View File

@ -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}`;