UI: Menu models improvements
This commit is contained in:
parent
1c2f357585
commit
8765645179
@ -23,7 +23,6 @@ export interface MenuSection extends HasUUID{
|
||||
type: MenuSectionType;
|
||||
path: string;
|
||||
icon: string;
|
||||
notExact?: boolean;
|
||||
isMdiIcon?: boolean;
|
||||
height?: string;
|
||||
pages?: Array<MenuSection>;
|
||||
|
||||
@ -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'
|
||||
},
|
||||
{
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user