Update installed charts number according to filter (#121)

This commit is contained in:
ronahk
2022-11-28 13:02:16 +02:00
committed by GitHub
parent 8de7941063
commit fa4819b353
2 changed files with 8 additions and 3 deletions

View File

@@ -328,11 +328,17 @@ function filterInstalledList(list) {
let filterStr = $("#installedSearch").val().toLowerCase();
let filteredNamespaces = getHashParam("filteredNamespace")
let anyShown = false;
let installedCount = 0;
list.each(function (ix, card) {
anyShown |= showHideInstalledRelease($(card), filteredNamespaces, filterStr)
anyShown = showHideInstalledRelease($(card), filteredNamespaces, filterStr)
if (anyShown) {
installedCount++;
}
})
if (list.length && !anyShown) {
$("#installedList .header h2 span").text(installedCount)
if (list.length && !installedCount) {
warnMsg.show()
}
}