mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-20 13:33:06 +00:00
I changed servers string into controllers string on the server page
This commit is contained in:
parent
caa444121e
commit
9f80df4360
@ -1,5 +1,5 @@
|
||||
<div class="content">
|
||||
<div class="default-header"><h1>Servers</h1></div>
|
||||
<div class="default-header"><h1>Controllers</h1></div>
|
||||
<div class="default-content">
|
||||
<app-server-discovery></app-server-discovery>
|
||||
|
||||
@ -26,10 +26,7 @@
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="location">
|
||||
<mat-header-cell *matHeaderCellDef> Location </mat-header-cell>
|
||||
<mat-cell *matCellDef="let row"> {{ row.location }} </mat-cell>
|
||||
</ng-container>
|
||||
|
||||
|
||||
<ng-container matColumnDef="ip">
|
||||
<mat-header-cell *matHeaderCellDef> Host </mat-header-cell>
|
||||
@ -99,7 +96,7 @@
|
||||
<button *ngIf="isElectronApp" mat-raised-button class="button" (click)="startLocalServer()">
|
||||
Start local server
|
||||
</button>
|
||||
<button mat-raised-button class="button" color="primary" (click)="createModal()">Add server</button>
|
||||
<button mat-raised-button class="button" color="primary" (click)="createModal()">Add Controller</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -5,3 +5,10 @@
|
||||
.button {
|
||||
margin: 20px !important;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
mat-header-cell, mat-cell {
|
||||
justify-content: center;
|
||||
}
|
@ -21,7 +21,7 @@ import { AddServerDialogComponent } from './add-server-dialog/add-server-dialog.
|
||||
})
|
||||
export class ServersComponent implements OnInit, OnDestroy {
|
||||
dataSource: ServerDataSource;
|
||||
displayedColumns = ['id', 'name', 'location', 'ip', 'port', 'actions'];
|
||||
displayedColumns = ['id', 'name', 'ip', 'port', 'actions'];
|
||||
serverStatusSubscription: Subscription;
|
||||
isElectronApp: boolean = false;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<mat-toolbar color="primary">
|
||||
<button mat-icon-button><mat-icon svgIcon="gns3"></mat-icon></button>
|
||||
|
||||
<button mat-button routerLink="/servers">Servers</button>
|
||||
<button mat-button routerLink="/servers">Controllers</button>
|
||||
|
||||
<button *ngIf="!recentlyOpenedProjectId && serverIdProjectList" mat-button (click)="listProjects()">
|
||||
Projects
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
<span class="fill-space"></span>
|
||||
|
||||
<button mat-button *ngIf="!isLoginPage" [matMenuTriggerFor]="menu">
|
||||
<button mat-button *ngIf="!isLoginPage && router.url !='/servers'" [matMenuTriggerFor]="menu">
|
||||
<mat-icon>more_vert</mat-icon>
|
||||
</button>
|
||||
|
||||
|
@ -36,11 +36,12 @@ export class DefaultLayoutComponent implements OnInit, OnDestroy {
|
||||
private serverManagement: ServerManagementService,
|
||||
private toasterService: ToasterService,
|
||||
private progressService: ProgressService,
|
||||
private router: Router,
|
||||
public router: Router,
|
||||
private serverService: ServerService
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
this.checkIfUserIsLoginPage();
|
||||
this.routeSubscription = this.router.events.subscribe((val) => {
|
||||
if (val instanceof NavigationEnd) this.checkIfUserIsLoginPage();
|
||||
|
Loading…
Reference in New Issue
Block a user