diff --git a/controller/overview.go b/controller/overview.go index dbf95a1d..1f26550d 100644 --- a/controller/overview.go +++ b/controller/overview.go @@ -38,6 +38,7 @@ func overviewHandler(_ metadata.OverviewParams, principal *rest_model_zrok.Princ }, } for _, svc := range svcs { + logrus.Infof("active = %t", svc.Active) es.Services = append(es.Services, &rest_model_zrok.Service{ Active: svc.Active, CreatedAt: svc.CreatedAt.String(), diff --git a/ui/src/Services.js b/ui/src/Services.js index cc40ed43..31057f70 100644 --- a/ui/src/Services.js +++ b/ui/src/Services.js @@ -16,13 +16,32 @@ const Services = (props) => { name: 'Service Id', selector: row => row.zitiServiceId, sortable: true, + }, + { + name: 'Active', + selector: row => row.active, + sortable: true + } + ] + + const conditionalRowStyles = [ + { + when: row => !row.active, + style: { + display: 'none' + } } ] return (