mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
Add "close" button to shutdown the server
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
<label for="cluster" style="margin-top: 0.5rem">K8s Context:</label>
|
||||
<select id="cluster" class="form-control"></select>
|
||||
</form>
|
||||
<i class="btn fa fa-power-off text-muted" title="Shut down the Helm Dashboard application"></i>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@@ -346,4 +346,13 @@ function showResources(namespace, chart, revision) {
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
$(".fa-power-off").click(function () {
|
||||
$.ajax({
|
||||
url: "/",
|
||||
type: 'DELETE',
|
||||
}).done(function () {
|
||||
window.close();
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user