From c5f9f71e45771dcec0dd77e71ae9330255317b2e Mon Sep 17 00:00:00 2001 From: Harshit Mehta Date: Fri, 28 Oct 2022 19:52:20 +0530 Subject: [PATCH] Remove version check for charts without repo (#54) Co-authored-by: Harshit Mehta --- pkg/dashboard/static/actions.js | 2 ++ pkg/dashboard/static/index.html | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/dashboard/static/actions.js b/pkg/dashboard/static/actions.js index e58a7ae..1aa1508 100644 --- a/pkg/dashboard/static/actions.js +++ b/pkg/dashboard/static/actions.js @@ -26,9 +26,11 @@ function checkUpgradeable(name) { $("#btnUpgrade .icon").removeClass("bi-hourglass-split").addClass("bi-x-octagon") $("#btnUpgrade").prop("disabled", true) $("#btnUpgradeCheck").prop("disabled", true) + $("#btnAddRepository").text("Add missing repository") return } + $("#btnUpgradeCheck").text("Check for new version") const verCur = $("#specRev").data("last-chart-ver"); const elm = data[0] $("#btnUpgradeCheck").data("repo", elm.name.split('/').shift()) diff --git a/pkg/dashboard/static/index.html b/pkg/dashboard/static/index.html index d723957..9d3ca10 100644 --- a/pkg/dashboard/static/index.html +++ b/pkg/dashboard/static/index.html @@ -194,10 +194,14 @@ title="Uninstall the chart"> Uninstall
- Check for new version + +
+ +