diff --git a/src/app/_ws-mixins.scss b/src/app/_ws-mixins.scss index 66c7bb94..5425e9e8 100644 --- a/src/app/_ws-mixins.scss +++ b/src/app/_ws-mixins.scss @@ -60,6 +60,14 @@ } } } +@mixin readable-disabled-components { + :host ::ng-deep { + .p-component:disabled, + .p-disabled { + opacity: unset; + } + } +} @mixin compact-dropdown-list-items { :host ::ng-deep { diff --git a/src/app/shared/services/menu-item.service.ts b/src/app/shared/services/menu-item.service.ts index cd13069d..22d31bd8 100644 --- a/src/app/shared/services/menu-item.service.ts +++ b/src/app/shared/services/menu-item.service.ts @@ -55,21 +55,20 @@ export class MenuItemService { } private expandCurrentMfeMenuItems(items: MenuItem[], currentMfePath: string): boolean { + let expanded = false for (const item of items) { - if (this.stripPath(item.routerLink) === currentMfePath) return true - else if (item.items && this.expandCurrentMfeMenuItems(item.items, currentMfePath)) { - item.expanded = true - return true - } + if (!expanded) + if (this.stripPath(item.routerLink) === currentMfePath) expanded = true + else if (item.items && this.expandCurrentMfeMenuItems(item.items, currentMfePath)) { + item.expanded = true + expanded = true + } } - return false + return expanded } private replaceUrlVariables(url: string | undefined): string | undefined { - if (!url) { - return - } - return url.replaceAll( + return url?.replaceAll( /\[\[(.+?)\]\]/g, //NOSONAR (_match, $1) => { return sessionStorage.getItem($1) ?? localStorage.getItem($1) ?? '' diff --git a/src/app/workspace/workspace-create/workspace-create.component.html b/src/app/workspace/workspace-create/workspace-create.component.html index 248d0e46..380e7c3a 100644 --- a/src/app/workspace/workspace-create/workspace-create.component.html +++ b/src/app/workspace/workspace-create/workspace-create.component.html @@ -25,7 +25,7 @@ tooltipPosition="top" tooltipEvent="hover" /> - + - + - + @@ -92,7 +92,7 @@ tooltipPosition="top" tooltipEvent="hover" /> - +