mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
Allow filtering on repository charts list (#61)
Fixes #46 Co-authored-by: Harshit Mehta <harshitm@nvidia.com>
This commit is contained in:
@@ -337,4 +337,18 @@ $("#btnRollback").click(function () {
|
||||
$("#btnAddRepository").click(function () {
|
||||
setHashParam("section", "repository")
|
||||
window.location.reload()
|
||||
})
|
||||
|
||||
$("#inputSearch").keyup(function() {
|
||||
var val = $(this).val().toLowerCase();
|
||||
|
||||
$(".charts li").hide()
|
||||
|
||||
$(".charts li").each(function(){
|
||||
var chartNameElem = this.firstElementChild
|
||||
var chartName = $(chartNameElem).text().toLowerCase()
|
||||
if(chartName.indexOf(val) != -1) {
|
||||
$(this).show()
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user