= {
+ 'not-deployed': 'Not Deployed',
available: 'Available',
deploying: 'Deploying',
installing: 'Installing',
@@ -59,7 +64,7 @@ export function ClusterServicesComponent() {
};
return (
-
+
{labels[status] || status}
);
@@ -210,16 +215,18 @@ export function ClusterServicesComponent() {
{service.version}
)}
- {getStatusIcon(service.status?.status)}
+ {getStatusIcon(typeof service.status === 'string' ? service.status : service.status?.status)}
{service.description}
- {service.status?.message && (
+ {typeof service.status === 'object' && service.status?.message && (
{service.status.message}
)}
{getStatusBadge(service)}
- {!service.deployed && (
+ {((typeof service.status === 'string' && service.status === 'not-deployed') ||
+ (!service.status || service.status === 'not-deployed') ||
+ (typeof service.status === 'object' && service.status?.status === 'not-deployed')) && (
)}
- {service.deployed && (
+ {((typeof service.status === 'string' && service.status === 'deployed') ||
+ (typeof service.status === 'object' && service.status?.status === 'deployed')) && (