Merge branch 'main' of github.com:komodorio/helm-dashboard

This commit is contained in:
Andrei Pohilko
2022-11-08 14:38:01 +00:00
4 changed files with 6 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ $(function () {
reportError("Failed to get list of clusters", xhr)
}).done(function (data) {
const context = getHashParam("context")
data.sort((a, b) => (getCleanClusterName(a.Name) > getCleanClusterName(b.Name)) - (getCleanClusterName(a.Name) < getCleanClusterName(b.Name)))
fillClusterList(data, context);
initView(); // can only do it after loading cluster list