From 1e4b2404c418512d97bfb06e2e782352119127a5 Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Sun, 14 Jun 2020 21:47:11 -0400 Subject: [PATCH] added general exception UI handler for #605 --- Oqtane.Server/Pages/_Host.cshtml | 11 +++++++++++ Oqtane.Server/wwwroot/css/app.css | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/Oqtane.Server/Pages/_Host.cshtml b/Oqtane.Server/Pages/_Host.cshtml index a214e706..35608c1e 100644 --- a/Oqtane.Server/Pages/_Host.cshtml +++ b/Oqtane.Server/Pages/_Host.cshtml @@ -24,6 +24,17 @@ +
+ + An error has occurred. This application may no longer respond until reloaded. + + + An unhandled exception has occurred. See browser dev tools for details. + + Reload + 🗙 +
+ diff --git a/Oqtane.Server/wwwroot/css/app.css b/Oqtane.Server/wwwroot/css/app.css index 403f803e..4c9ef493 100644 --- a/Oqtane.Server/wwwroot/css/app.css +++ b/Oqtane.Server/wwwroot/css/app.css @@ -163,4 +163,23 @@ app { margin-left: -5em; width: 10em; } +} + +#blazor-error-ui { + background: lightyellow; + bottom: 0; + box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); + display: none; + left: 0; + padding: 0.6rem 1.25rem 0.7rem 1.25rem; + position: fixed; + width: 100%; + z-index: 1000; +} + +#blazor-error-ui .dismiss { + cursor: pointer; + position: absolute; + right: 0.75rem; + top: 0.5rem; } \ No newline at end of file