UI: Menu models improvements

This commit is contained in:
Igor Kulikov 2022-01-18 11:31:40 +02:00
parent 1c2f357585
commit 8765645179
3 changed files with 2 additions and 6 deletions

View File

@ -23,7 +23,6 @@ export interface MenuSection extends HasUUID{
type: MenuSectionType;
path: string;
icon: string;
notExact?: boolean;
isMdiIcon?: boolean;
height?: string;
pages?: Array<MenuSection>;

View File

@ -235,7 +235,6 @@ export class MenuService {
name: 'home.home',
type: 'link',
path: '/home',
notExact: true,
icon: 'home'
},
{
@ -344,8 +343,7 @@ export class MenuService {
name: 'api-usage.api-usage',
type: 'link',
path: '/usage',
icon: 'insert_chart',
notExact: true
icon: 'insert_chart'
},
{
id: guid(),
@ -517,7 +515,6 @@ export class MenuService {
name: 'home.home',
type: 'link',
path: '/home',
notExact: true,
icon: 'home'
},
{

View File

@ -16,7 +16,7 @@
-->
<a mat-button class="tb-button-toggle"
routerLinkActive="tb-active" [routerLinkActiveOptions]="{exact: true}" routerLink="{{section.path}}">
routerLinkActive="tb-active" [routerLinkActiveOptions]="{paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored'}" routerLink="{{section.path}}">
<mat-icon *ngIf="!section.isMdiIcon && section.icon != null" class="material-icons">{{section.icon}}</mat-icon>
<mat-icon *ngIf="section.isMdiIcon && section.icon != null" [svgIcon]="section.icon"></mat-icon>
<span>{{section.name | translate}}</span>