Skip to content

Commit e85f582

Browse files
authored
Merge pull request ceph#51552 from rhcs-dashboard/fix-61215-main
mgr/dashboard: Status column in Cluster > Hosts shows empty Reviewed-by: Avan Thakkar <[email protected]> Reviewed-by: Nizamudeen A <[email protected]>
2 parents dc4ad93 + 930e480 commit e85f582

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
@@ -220,7 +220,8 @@ export class HostsComponent extends ListWithDetails implements OnDestroy, OnInit
220220
cellTransformation: CellTemplate.badge,
221221
customTemplateConfig: {
222222
map: {
223-
maintenance: { class: 'badge-warning' }
223+
maintenance: { class: 'badge-warning' },
224+
available: { class: 'badge-success' }
224225
}
225226
}
226227
},
@@ -498,6 +499,11 @@ export class HostsComponent extends ListWithDetails implements OnDestroy, OnInit
498499
.subscribe(
499500
(hostList) => {
500501
this.hosts = hostList;
502+
this.hosts.forEach((host: object) => {
503+
if (host['status'] === '') {
504+
host['status'] = 'available';
505+
}
506+
});
501507
this.transformHostsData();
502508
this.isLoadingHosts = false;
503509
},

0 commit comments

Comments
 (0)