Skip to content

Commit 930e480

Browse files
author
Aashish Sharma
committed
mgr/dashboard: Status column in Cluster > Hosts shows empty
Fixes: https://tracker.ceph.com/issues/61215 Signed-off-by: Aashish Sharma <[email protected]>
1 parent a01fd8b commit 930e480

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ export class HostsComponent extends ListWithDetails implements OnDestroy, OnInit
217217
cellTransformation: CellTemplate.badge,
218218
customTemplateConfig: {
219219
map: {
220-
maintenance: { class: 'badge-warning' }
220+
maintenance: { class: 'badge-warning' },
221+
available: { class: 'badge-success' }
221222
}
222223
}
223224
},
@@ -495,6 +496,11 @@ export class HostsComponent extends ListWithDetails implements OnDestroy, OnInit
495496
.subscribe(
496497
(hostList) => {
497498
this.hosts = hostList;
499+
this.hosts.forEach((host: object) => {
500+
if (host['status'] === '') {
501+
host['status'] = 'available';
502+
}
503+
});
498504
this.transformHostsData();
499505
this.isLoadingHosts = false;
500506
},

0 commit comments

Comments
 (0)