Skip to content

Commit a89ccbd

Browse files
Overlay with explaination modified (#123)
1 parent fa4819b commit a89ccbd

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

pkg/dashboard/static/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,24 @@
7575
</div>
7676
<div class="separator-vertical"><span></span></div>
7777
<i class="btn bi-power text-muted p-2 m-1 mx-2" title="Shut down the Helm Dashboard application"></i>
78+
79+
<!-- Modal -->
80+
<div class="modal fade" id="PowerOffModal" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
81+
<div class="modal-dialog">
82+
<div class="modal-content">
83+
<div class="modal-header">
84+
<h5 class="modal-title" id="ModalLabel">Message</h5>
85+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
86+
</div>
87+
<div class="modal-body">
88+
Close this browser tab now.
89+
</div>
90+
<div class="modal-footer">
91+
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
92+
</div>
93+
</div>
94+
</div>
95+
</div>
7896
</div>
7997
</nav>
8098
<!-- /TOP BAR -->

pkg/dashboard/static/scripts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ $(".bi-power").click(function () {
265265
type: 'DELETE',
266266
}).done(function () {
267267
// TODO: display explanation overlay here
268+
$("#PowerOffModal").modal('show');
268269
window.close();
269270
})
270271
})

0 commit comments

Comments
 (0)