From d6628494242eddabb7d91b19edba11058d70ed7f Mon Sep 17 00:00:00 2001 From: Andrei Pohilko Date: Thu, 15 Sep 2022 21:34:20 +0100 Subject: [PATCH] Right place for msg --- pkg/dashboard/static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dashboard/static/scripts.js b/pkg/dashboard/static/scripts.js index b6ed1fb..22dc5c2 100644 --- a/pkg/dashboard/static/scripts.js +++ b/pkg/dashboard/static/scripts.js @@ -221,6 +221,7 @@ $("#btnUpgradeCheck").click(function () { self.find(".bi-repeat").hide() self.find(".spinner-border").show() const repoName = self.data("repo") + $("#btnUpgrade").text("Checking...") $.post("/api/helm/repo/update?name=" + repoName).fail(function () { reportError("Failed to update chart repo") }).done(function () { @@ -234,7 +235,6 @@ $("#btnUpgradeCheck").click(function () { function checkUpgradeable(name) { - $("#btnUpgrade").text("Checking...") $.getJSON("/api/helm/repo/search?name=" + name).fail(function () { reportError("Failed to find chart in repo") }).done(function (data) {