diff --git a/README.md b/README.md index a8ebc17..74d61ac 100644 --- a/README.md +++ b/README.md @@ -70,4 +70,3 @@ Adding new repository Recognise & show ArgoCD-originating charts/objects Have cleaner idea on the web API structure See if we can build in Chechov or Validkube validation -Add "close" button to shutdown the server, wherever it is \ No newline at end of file diff --git a/pkg/dashboard/static/index.html b/pkg/dashboard/static/index.html index 7e470c4..f671174 100644 --- a/pkg/dashboard/static/index.html +++ b/pkg/dashboard/static/index.html @@ -47,6 +47,7 @@ + diff --git a/pkg/dashboard/static/scripts.js b/pkg/dashboard/static/scripts.js index 5415d6d..85a6d1b 100644 --- a/pkg/dashboard/static/scripts.js +++ b/pkg/dashboard/static/scripts.js @@ -346,4 +346,13 @@ function showResources(namespace, chart, revision) { } }) -} \ No newline at end of file +} + +$(".fa-power-off").click(function () { + $.ajax({ + url: "/", + type: 'DELETE', + }).done(function () { + window.close(); + }) +}) \ No newline at end of file