Overlay with explaination modified (#123)

This commit is contained in:
siddhikhapare
2022-11-29 16:41:22 +05:30
committed by GitHub
parent fa4819b353
commit a89ccbdab7
2 changed files with 19 additions and 0 deletions

View File

@@ -75,6 +75,24 @@
</div> </div>
<div class="separator-vertical"><span></span></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> <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> </div>
</nav> </nav>
<!-- /TOP BAR --> <!-- /TOP BAR -->

View File

@@ -265,6 +265,7 @@ $(".bi-power").click(function () {
type: 'DELETE', type: 'DELETE',
}).done(function () { }).done(function () {
// TODO: display explanation overlay here // TODO: display explanation overlay here
$("#PowerOffModal").modal('show');
window.close(); window.close();
}) })
}) })