mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 14:28:04 +00:00
@@ -60,6 +60,7 @@ function fillClusters(limNS) {
|
|||||||
if (!limNS) {
|
if (!limNS) {
|
||||||
fillNamespaceList(res.items)
|
fillNamespaceList(res.items)
|
||||||
}
|
}
|
||||||
|
}).always(function () {
|
||||||
initView(); // can only do it after loading cluster and namespace lists
|
initView(); // can only do it after loading cluster and namespace lists
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -203,7 +204,6 @@ function fillNamespaceList(data) {
|
|||||||
const curContextNamespaces = $("body").data("contexts").filter(obj => {
|
const curContextNamespaces = $("body").data("contexts").filter(obj => {
|
||||||
return obj.IsCurrent
|
return obj.IsCurrent
|
||||||
})
|
})
|
||||||
console.log(curContextNamespaces)
|
|
||||||
|
|
||||||
if (!data || !data.length) {
|
if (!data || !data.length) {
|
||||||
$("#namespace").append("default")
|
$("#namespace").append("default")
|
||||||
|
|||||||
Reference in New Issue
Block a user