summaryrefslogtreecommitdiff
path: root/gae/frontend/src/app/menu/device/device.component.html
diff options
context:
space:
mode:
authorJongmok Hong <jongmok@google.com>2018-09-28 06:20:08 +0900
committerJongmok Hong <jongmok@google.com>2018-09-28 08:01:51 +0900
commit2c8485a1ed46095b42adecfa1473c370e37dcfe5 (patch)
tree29e90ff258e022357b5f008e2a3ea085deb07b21 /gae/frontend/src/app/menu/device/device.component.html
parent086619542c2b7bb3b5879f6ac1c7bcf15aa0f819 (diff)
downloadtest_serving-2c8485a1ed46095b42adecfa1473c370e37dcfe5.tar.gz
Add a missing hostname property.
This change includes ordering the list of devices by hostname, and a similar change is also applied to the job page to create an arrow in order to indicate users how the list of jobs is ordered. Test: go/vtslab-schedule-dev Bug: 116078450 Change-Id: If3f7f809d001f136a98979a63f57acdab00bc288
Diffstat (limited to 'gae/frontend/src/app/menu/device/device.component.html')
-rw-r--r--gae/frontend/src/app/menu/device/device.component.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/gae/frontend/src/app/menu/device/device.component.html b/gae/frontend/src/app/menu/device/device.component.html
index 762e198..2ff28f4 100644
--- a/gae/frontend/src/app/menu/device/device.component.html
+++ b/gae/frontend/src/app/menu/device/device.component.html
@@ -16,7 +16,7 @@
<app-filter (applyFilters)="applyFilters($event)" [disabled]="loading"></app-filter>
</div>
<div class="mat-elevation-z2 entity-table" [ngStyle]="{'opacity': (loading) ? 0.2 : 1 }">
- <table mat-table [dataSource]="dataSource">
+ <mat-table [dataSource]="dataSource" matSort matSortActive="hostname" matSortDirection="asc">
<!-- Index Column -->
<ng-container matColumnDef="_index">
<mat-header-cell *matHeaderCellDef>No.</mat-header-cell>
@@ -25,7 +25,7 @@
<!-- Host Name Column -->
<ng-container matColumnDef="hostname">
- <mat-header-cell *matHeaderCellDef>Host Name</mat-header-cell>
+ <mat-header-cell *matHeaderCellDef mat-sort-header disabled>Host Name</mat-header-cell>
<mat-cell *matCellDef="let device"> {{device.hostname}} </mat-cell>
</ng-container>
@@ -61,8 +61,7 @@
<mat-header-row *matHeaderRowDef="columnTitles"></mat-header-row>
<mat-row *matRowDef="let row; columns: columnTitles;"></mat-row>
- </table>
-
+ </mat-table>
<mat-paginator [length]="count"
[pageSize]="pageSize"
[pageSizeOptions]="pageSizeOptions"