Skip to content

Commit

Permalink
Check for resource kind
Browse files Browse the repository at this point in the history
  • Loading branch information
dzsak committed Mar 28, 2024
1 parent 7065e53 commit a29ad53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/ReadyWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion web/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a29ad53

Please sign in to comment.