Browse Source

UI: Menu models improvements

pull/5921/head
Igor Kulikov 4 years ago
parent
commit
8765645179
  1. 1
      ui-ngx/src/app/core/services/menu.models.ts
  2. 5
      ui-ngx/src/app/core/services/menu.service.ts
  3. 2
      ui-ngx/src/app/modules/home/menu/menu-toggle.component.html

1
ui-ngx/src/app/core/services/menu.models.ts

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

5
ui-ngx/src/app/core/services/menu.service.ts

@ -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'
},
{

2
ui-ngx/src/app/modules/home/menu/menu-toggle.component.html

@ -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…
Cancel
Save