summaryrefslogtreecommitdiff
path: root/app/ui/modal.php
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-10-30 23:08:45 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-10-30 23:08:45 +0100
commit41c51b8bdb9c8e9fa4a7d56f260d594739d4107e (patch)
tree4bb3e824d636c7cf8cb39fd0e1aa25c49c339164 /app/ui/modal.php
parent4d4308c46d4f7801c657cc79d2243e1a81831334 (diff)
downloadmist-41c51b8bdb9c8e9fa4a7d56f260d594739d4107e.tar.gz
mist-41c51b8bdb9c8e9fa4a7d56f260d594739d4107e.tar.bz2
mist-41c51b8bdb9c8e9fa4a7d56f260d594739d4107e.zip
Updated 35 files and added 28 files (automated)
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