mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-03 17:23:00 +00:00
Enable top left corner menu on other page like setting
This commit is contained in:
parent
f75e7e0e10
commit
fc5b7b6e34
@ -99,7 +99,7 @@
|
|||||||
<mat-icon>info</mat-icon>
|
<mat-icon>info</mat-icon>
|
||||||
<span>Go to system status</span>
|
<span>Go to system status</span>
|
||||||
</button>
|
</button>
|
||||||
<button mat-menu-item routerLink="/settings">
|
<button mat-menu-item [routerLink]="['/controller', controller.id, 'settings']">
|
||||||
<mat-icon>settings</mat-icon>
|
<mat-icon>settings</mat-icon>
|
||||||
<span>Go to settings</span>
|
<span>Go to settings</span>
|
||||||
</button>
|
</button>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<header>
|
<header>
|
||||||
<mat-toolbar color="primary">
|
<mat-toolbar color="primary">
|
||||||
<button mat-icon-button><mat-icon svgIcon="gns3"></mat-icon></button>
|
<button mat-icon-button matTooltip="Open menu"
|
||||||
|
matTooltipClass="custom-tooltip" [matMenuTriggerFor]="mainMenu"><mat-icon svgIcon="gns3"></mat-icon></button>
|
||||||
|
|
||||||
<button mat-button routerLink="/controllers">Controllers</button>
|
<button mat-button routerLink="/controllers">Controllers</button>
|
||||||
|
|
||||||
@ -74,6 +75,48 @@
|
|||||||
<span>Logout</span>
|
<span>Logout</span>
|
||||||
</button>
|
</button>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
|
<!-- GNS3 menu -->
|
||||||
|
<mat-menu #mainMenu="matMenu" [overlapTrigger]="false">
|
||||||
|
<button mat-menu-item [routerLink]="['/controller', controllerId, 'projects']">
|
||||||
|
<mat-icon>work</mat-icon>
|
||||||
|
<span>Go to projects</span>
|
||||||
|
</button>
|
||||||
|
<button mat-menu-item [routerLink]="['/controllers']">
|
||||||
|
<mat-icon>developer_board</mat-icon>
|
||||||
|
<span>Go to controllers</span>
|
||||||
|
</button>
|
||||||
|
<button mat-menu-item routerLink="/controller/{{ controllerId }}/preferences">
|
||||||
|
<mat-icon>settings_applications</mat-icon>
|
||||||
|
<span>Go to preferences</span>
|
||||||
|
</button>
|
||||||
|
<button mat-menu-item routerLink="/controller/{{ controllerId }}/systemstatus">
|
||||||
|
<mat-icon>info</mat-icon>
|
||||||
|
<span>Go to system status</span>
|
||||||
|
</button>
|
||||||
|
<button mat-menu-item [routerLink]="['/controller', controllerId, 'settings']">
|
||||||
|
<mat-icon>settings</mat-icon>
|
||||||
|
<span>Go to settings</span>
|
||||||
|
</button>
|
||||||
|
<button mat-menu-item [routerLink]="['/controller', controllerId, 'image-manager']">
|
||||||
|
<mat-icon>collections</mat-icon>
|
||||||
|
<span>Image manager</span>
|
||||||
|
</button>
|
||||||
|
<!-- <button mat-menu-item (click)="addNewTemplate()">
|
||||||
|
<mat-icon>control_point</mat-icon>
|
||||||
|
<span>New template</span>
|
||||||
|
</button>
|
||||||
|
<app-import-appliance [controller]="controller" [project]="project"></app-import-appliance>
|
||||||
|
<button mat-menu-item [matMenuTriggerFor]="projectMenu">
|
||||||
|
<mat-icon>settings</mat-icon>
|
||||||
|
<span>Project settings</span>
|
||||||
|
</button>
|
||||||
|
<button mat-menu-item [matMenuTriggerFor]="viewMenu">
|
||||||
|
<mat-icon>view_module</mat-icon>
|
||||||
|
<span>Map settings</span>
|
||||||
|
</button> -->
|
||||||
|
</mat-menu>
|
||||||
|
|
||||||
|
|
||||||
</mat-toolbar>
|
</mat-toolbar>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user