From f7d4dcbff4750ec2497517c26f434b8b10e5b02e Mon Sep 17 00:00:00 2001 From: Andrei Pohilko Date: Thu, 24 Nov 2022 09:59:44 +0000 Subject: [PATCH] If cluster access is failed, still display UI Fixes #109 --- pkg/dashboard/static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dashboard/static/scripts.js b/pkg/dashboard/static/scripts.js index 0d55145..987fbf3 100644 --- a/pkg/dashboard/static/scripts.js +++ b/pkg/dashboard/static/scripts.js @@ -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")