Skip to content

Commit c5f9f71

Browse files
harshit-mehtaaHarshit Mehta
andauthored
Remove version check for charts without repo (#54)
Co-authored-by: Harshit Mehta <[email protected]>
1 parent 9bb597f commit c5f9f71

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pkg/dashboard/static/actions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ function checkUpgradeable(name) {
2626
$("#btnUpgrade .icon").removeClass("bi-hourglass-split").addClass("bi-x-octagon")
2727
$("#btnUpgrade").prop("disabled", true)
2828
$("#btnUpgradeCheck").prop("disabled", true)
29+
$("#btnAddRepository").text("Add missing repository")
2930
return
3031
}
3132

33+
$("#btnUpgradeCheck").text("Check for new version")
3234
const verCur = $("#specRev").data("last-chart-ver");
3335
const elm = data[0]
3436
$("#btnUpgradeCheck").data("repo", elm.name.split('/').shift())

pkg/dashboard/static/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,14 @@ <h1 class="name float-start">Name</h1>
194194
title="Uninstall the chart"><i class="bi-trash3"></i> Uninstall
195195
</button>
196196
<br/>
197-
<a class="link small" id="btnUpgradeCheck">Check for new version
197+
<a class="link small" id="btnUpgradeCheck">
198198
<span class="spinner-border spinner-border-sm" style="display: none" role="status"
199199
aria-hidden="true"></span>
200200
</a>
201+
<div class="small" id="btnAddRepository">
202+
<span class="spinner-border spinner-border-sm" style="display: none" role="status"
203+
aria-hidden="true"></span>
204+
</div>
201205
</div>
202206
<div class="fs-2">&nbsp;</div>
203207
</div>

0 commit comments

Comments
 (0)