diff --git a/README.md b/README.md index bbfc403..bc442f1 100644 --- a/README.md +++ b/README.md @@ -42,9 +42,11 @@ To uninstall, run: helm plugin uninstall dashboard ``` +Note: In case standard Helm plugin way did not work for you, you can just download the appropriate [release package](https://github.com/komodorio/helm-dashboard/releases) for your platform, unpack it and just run `dashboard` binary from it. + ## Running -To use the plugin, your machine needs to have working `helm` and also `kubectl` commands. +To use the plugin, your machine needs to have working `helm` and also `kubectl` commands. Helm version 3.4.0+ is required. After installing, start the UI by running: diff --git a/pkg/dashboard/static/actions.js b/pkg/dashboard/static/actions.js index 8f79465..e58a7ae 100644 --- a/pkg/dashboard/static/actions.js +++ b/pkg/dashboard/static/actions.js @@ -112,7 +112,8 @@ $("#upgradeModal .btn-confirm").click(function () { }).done(function (data) { if (data.version) { setHashParam("section", null) - setHashParam("namespace", $("#upgradeModal .rel-ns").val()) + const ns = $("#upgradeModal .rel-ns").val(); + setHashParam("namespace", ns ? ns : "default") setHashParam("chart", $("#upgradeModal .rel-name").val()) setHashParam("revision", data.version) window.location.reload() diff --git a/pkg/dashboard/static/index.html b/pkg/dashboard/static/index.html index 132b0f9..a1e0607 100644 --- a/pkg/dashboard/static/index.html +++ b/pkg/dashboard/static/index.html @@ -44,9 +44,6 @@ -
-
-
komodor.io - -
@@ -99,7 +110,7 @@
- +
@@ -150,6 +161,9 @@
+ @@ -254,6 +268,9 @@ data-mode="diff-rev"> Diff with specific revision: + diff --git a/pkg/dashboard/static/list-view.js b/pkg/dashboard/static/list-view.js index 212a806..e3d804f 100644 --- a/pkg/dashboard/static/list-view.js +++ b/pkg/dashboard/static/list-view.js @@ -12,6 +12,10 @@ function loadChartsList() { let card = buildChartCard(elm); chartsCards.append(card) }) + + if (!data.length) { + $("#installedList .no-charts").show() + } }) } diff --git a/pkg/dashboard/static/styles.css b/pkg/dashboard/static/styles.css index 40a8db5..914417c 100644 --- a/pkg/dashboard/static/styles.css +++ b/pkg/dashboard/static/styles.css @@ -76,6 +76,10 @@ min-width: 60%; } +.fs-80 { + font-size: 0.8rem!important; +} + html { min-height: 100%; }