summaryrefslogtreecommitdiff
path: root/app/ui/modal.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/ui/modal.php')
-rw-r--r--app/ui/modal.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/ui/modal.php b/app/ui/modal.php
index b8f1cfb..ec3e663 100644
--- a/app/ui/modal.php
+++ b/app/ui/modal.php
@@ -45,5 +45,34 @@
window.parent.document.getElementById("modal").style.display = "none";
});
</script>
+
+ <div class="modal fade" id="error" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1">
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="modal-header" id="modal-header">
+ <h4 class="modal-title">An internal error has occurred</h4>
+ </div>
+
+ <div class="modal-body">
+ <div class="alert alert-danger">
+ <p>If this is the first time you see this, simply restart Mist and try again.</p>
+ <p>If you have been seeing this multiple times, you might be encountering a bug and you should report it to your administrator.</p>
+ <a onclick="window.parent.location.reload();" class="btn btn-danger">Reload</a>
+
+ <hr>
+ <pre id="error-content"></pre>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <script>
+ window._error = new bootstrap.Modal(document.getElementById("error"));
+
+ document.getElementById("error").addEventListener("shown.bs.modal", () => {
+ window.parent.document.getElementById("modal").style.display = "";
+ });
+ </script>
</body>
</html> \ No newline at end of file