Add "close" button to shutdown the server

This commit is contained in:
Andrei Pohilko
2022-09-08 12:11:21 +01:00
parent 8fa3d9b960
commit 4bd510962a
3 changed files with 11 additions and 2 deletions

View File

@@ -346,4 +346,13 @@ function showResources(namespace, chart, revision) {
}
})
}
}
$(".fa-power-off").click(function () {
$.ajax({
url: "/",
type: 'DELETE',
}).done(function () {
window.close();
})
})