I changed servers string into controllers string on the server page

This commit is contained in:
Rajnikant Lodhi 2022-07-18 12:01:22 +05:30
parent caa444121e
commit 9f80df4360
5 changed files with 15 additions and 10 deletions

View File

@ -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>

View File

@ -5,3 +5,10 @@
.button {
margin: 20px !important;
}
table {
width: 100%;
}
mat-header-cell, mat-cell {
justify-content: center;
}

View File

@ -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;

View File

@ -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>

View File

@ -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();