From 329ae055eede6ca2f3efb9a6689ceb14bec247b9 Mon Sep 17 00:00:00 2001 From: Harshit Mehta Date: Mon, 31 Oct 2022 14:04:51 +0530 Subject: [PATCH] Add current cluster info to Install and Upgrade popup (#58) Fixes #44 Co-authored-by: Harshit Mehta --- pkg/dashboard/static/actions.js | 2 ++ pkg/dashboard/static/index.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/pkg/dashboard/static/actions.js b/pkg/dashboard/static/actions.js index d41561b..2ec801f 100644 --- a/pkg/dashboard/static/actions.js +++ b/pkg/dashboard/static/actions.js @@ -59,6 +59,8 @@ function popUpUpgrade(elm, ns, name, verCur, lastRev) { $("#upgradeModalLabel .name").text(elm.name) + $("#upgradeModal .rel-cluster").text(getHashParam("context")) + if (verCur) { $("#upgradeModal .ver-old").show().find("span").text(verCur) $("#upgradeModal .rel-name").prop("disabled", true).val(name) diff --git a/pkg/dashboard/static/index.html b/pkg/dashboard/static/index.html index cb1cc57..5e09361 100644 --- a/pkg/dashboard/static/index.html +++ b/pkg/dashboard/static/index.html @@ -374,6 +374,9 @@ +