Skip to content

Commit 3eae013

Browse files
committed
Hide upgrade menu item by default
1 parent 2221fb2 commit 3eae013

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/dashboard/static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ <h1><a href="/">Helm Dashboard</a></h1>
7070
<hr class="dropdown-divider">
7171
</li>
7272
<li><a class="dropdown-item disabled" href="#">Version <span id="toolVersion"></span></a></li>
73-
<li class="">
73+
<li class="display-none upgrade-possible">
7474
<a class="dropdown-item position-relative" href="https://github.com/komodorio/helm-dashboard#installing" target="_blank">
7575
<span class="position-absolute top-50 start-0 translate-middle p-1 bg-danger border border-light rounded-circle new-version-pill display-none">
7676
<span class="visually-hidden">New version</span>

pkg/dashboard/static/scripts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,6 @@ function fillToolVersion(data) {
218218
if (isNewerVersion(data.CurVer, data.LatestVer)) {
219219
$("#toolVersionUpgrade").text(data.LatestVer)
220220
$(".new-version-pill").show()
221+
$(".upgrade-possible").show()
221222
}
222223
}

0 commit comments

Comments
 (0)