From a29ad53c1be230f1a53ea9cb80f5318de4a353c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m?= Date: Thu, 28 Mar 2024 12:03:03 +0100 Subject: [PATCH] Check for resource kind --- web/src/ReadyWidget.jsx | 2 +- web/src/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/ReadyWidget.jsx b/web/src/ReadyWidget.jsx index 572c22f..4cc5589 100644 --- a/web/src/ReadyWidget.jsx +++ b/web/src/ReadyWidget.jsx @@ -29,7 +29,7 @@ export function ReadyWidget(props) { var [color,statusLabel,messageColor] = ['','',''] const readyLabel = label ? label : "Ready" - if (resource.kind === 'GitRepository' || resource.kind === "OCIRepository" || resource.kind === "Bucket") { + if (resource.kind === 'GitRepository' || resource.kind === "OCIRepository" || resource.kind === "Bucket" || resource.kind === "HelmRepository" || resource.kind === "HelmChart") { color = fetchFailed ? "bg-orange-400 animate-pulse" : reconciling ? "bg-blue-400 animate-pulse" : ready ? "bg-teal-400" : "bg-orange-400 animate-pulse" statusLabel = fetchFailed ? "Error" : reconciling ? "Reconciling" : ready ? readyLabel : "Error" messageColor = fetchFailed ? "bg-orange-400" : reconciling ? "text-neutral-600" : ready ? "text-neutral-600 field" : "bg-orange-400" diff --git a/web/src/utils.js b/web/src/utils.js index f3daf49..aa90eb2 100644 --- a/web/src/utils.js +++ b/web/src/utils.js @@ -39,7 +39,7 @@ export function filterResources(resources, filterErrors) { const fetchFailedCondition = fetchFailedConditions.length === 1 ? fetchFailedConditions[0] : undefined const fetchFailed = fetchFailedCondition && fetchFailedCondition.status === "True" - if (resource.kind === 'GitRepository' || resource.kind === "OCIRepository" || resource.kind === "Bucket") { + if (resource.kind === 'GitRepository' || resource.kind === "OCIRepository" || resource.kind === "Bucket" || resource.kind === "HelmRepository" || resource.kind === "HelmChart") { return fetchFailed }