Skip to content

Commit

Permalink
Merge branch 'main' of github.com:komodorio/helm-dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
undera committed Nov 29, 2022
2 parents 56e9430 + a89ccbd commit 9b8edb6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/dashboard/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,24 @@
</div>
<div class="separator-vertical"><span></span></div>
<i class="btn bi-power text-muted p-2 m-1 mx-2" title="Shut down the Helm Dashboard application"></i>

<!-- Modal -->
<div class="modal fade" id="PowerOffModal" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalLabel">Message</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Close this browser tab now.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</nav>
<!-- /TOP BAR -->
Expand Down
1 change: 1 addition & 0 deletions pkg/dashboard/static/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ $(".bi-power").click(function () {
type: 'DELETE',
}).done(function () {
// TODO: display explanation overlay here
$("#PowerOffModal").modal('show');
window.close();
})
})
Expand Down

0 comments on commit 9b8edb6

Please sign in to comment.