Skip to content

Commit f0b3b98

Browse files
committed
add client name to selectors and list
1 parent 2167432 commit f0b3b98

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/app/pages/devices/device-details/device-details.page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<ion-select slot="end" interface="action-sheet" [(ngModel)]="group.clients" multiple="true"
4242
placeholder="Select Clients">
4343
<ion-select-option *ngFor="let client of group.clients" [value]="client">
44-
{{ client.id }}
44+
{{ client.config.name || client.id }}
4545
</ion-select-option>
4646
</ion-select>
4747
</ion-item>

src/app/pages/devices/devices.page.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ <h2>{{ group.name || group.id }}</h2>
2525
<ion-list-header>
2626
<ion-label>Clients</ion-label>
2727
</ion-list-header>
28-
<ng-container *ngFor="let group of state.server.groups">
28+
<ng-container *ngFor="let group of state.server.groups">
2929
<ng-container *ngFor="let client of group.clients">
3030
<ion-item [routerLink]="['/tabs/clients', client.id]">
3131
<ion-label>
32-
<h2>{{ client.id }}</h2>
32+
<h2> {{ client.config.name || client.id }}
33+
</h2>
3334
<p>Group: {{ group.name || group.id }}</p>
3435
<p>Volume: {{ client.config.volume.percent || 'N/A' }}%</p>
3536
<p>Last Seen: {{ client.lastSeen.sec *1000 | date }}</p>
@@ -38,8 +39,8 @@ <h2>{{ client.id }}</h2>
3839
</ion-item>
3940
</ng-container>
4041

41-
</ng-container>
42-
42+
</ng-container>
43+
4344
</ion-list>
4445
</div>
4546
<ng-template #noState>

0 commit comments

Comments
 (0)