If cluster access is failed, still display UI

Fixes #109
This commit is contained in:
Andrei Pohilko
2022-11-24 09:59:44 +00:00
parent 8334f2b0b2
commit f7d4dcbff4

View File

@@ -60,6 +60,7 @@ function fillClusters(limNS) {
if (!limNS) {
fillNamespaceList(res.items)
}
}).always(function () {
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 => {
return obj.IsCurrent
})
console.log(curContextNamespaces)
if (!data || !data.length) {
$("#namespace").append("default")