Add current cluster info to Install and Upgrade popup (#58)

Fixes #44

Co-authored-by: Harshit Mehta <harshitm@nvidia.com>
This commit is contained in:
Harshit Mehta
2022-10-31 14:04:51 +05:30
committed by GitHub
parent 7ab0f33201
commit 329ae055ee
2 changed files with 5 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ function popUpUpgrade(elm, ns, name, verCur, lastRev) {
$("#upgradeModalLabel .name").text(elm.name) $("#upgradeModalLabel .name").text(elm.name)
$("#upgradeModal .rel-cluster").text(getHashParam("context"))
if (verCur) { if (verCur) {
$("#upgradeModal .ver-old").show().find("span").text(verCur) $("#upgradeModal .ver-old").show().find("span").text(verCur)
$("#upgradeModal .rel-name").prop("disabled", true).val(name) $("#upgradeModal .rel-name").prop("disabled", true).val(name)

View File

@@ -374,6 +374,9 @@
<label class="form-label me-4 text-dark"> <label class="form-label me-4 text-dark">
Namespace (optional): <input class="form-control rel-ns"> Namespace (optional): <input class="form-control rel-ns">
</label> </label>
<label class="form-label me-4 text-dark">
Cluster: <span class="form-label rel-cluster"></span>
</label>
</div> </div>
<div class="row"> <div class="row">
<div class="col-6 pe-3"> <div class="col-6 pe-3">