Fixes after review

This commit is contained in:
Piotr Pekala 2019-06-04 05:56:25 -07:00
parent 80338f194b
commit 3f823fac4c
2 changed files with 2 additions and 3 deletions

View File

@ -13,8 +13,8 @@
<ng-container matColumnDef="name">
<mat-header-cell *matHeaderCellDef> Name </mat-header-cell>
<mat-cell *matCellDef="let row">
<a *ngIf="getServerStatus(row) === 'running'" [routerLink]="['/server', row.id, 'projects']" class="table-link">{{ row.name }}</a>
<span *ngIf="getServerStatus(row) != 'running'">{{ row.name }}</span>
<a *ngIf="getServerStatus(row) === 'running' || row.location === 'remote'" [routerLink]="['/server', row.id, 'projects']" class="table-link">{{ row.name }}</a>
<span *ngIf="getServerStatus(row) != 'running' && row.location !== 'remote'">{{ row.name }}</span>
</mat-cell>
</ng-container>

View File

@ -103,7 +103,6 @@ export class ServersComponent implements OnInit, OnDestroy {
}
async stopServer(server: Server) {
server.status = "stopped";
await this.serverManagement.stop(server);
}
}