From 3064bd56abf7182f986e6729d77a70e06779ea44 Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 24 Jul 2023 16:33:13 +0200 Subject: [PATCH] reload also in case of server error Signed-off-by: Simon L --- php/public/forms.js | 7 +++++-- php/public/style.css | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/php/public/forms.js b/php/public/forms.js index faa64fa944e..3adc3997212 100644 --- a/php/public/forms.js +++ b/php/public/forms.js @@ -33,8 +33,11 @@ function showPassword(id) { disableSpinner() showError(xhr.response); } else if (xhr.status === 500) { - disableSpinner() - showError("Server error. Please check the mastercontainer logs for details."); + showError("Server error. Please check the mastercontainer logs for details. This page will reload after 10s automatically. Then you can check the mastercontainer logs."); + // Reload after 10s since it is expected that the updated view is shown (e.g. after starting containers) + setTimeout(function(){ + window.location.reload(1); + }, 10000); } else { // If the responose is not one of the above, we should reload to show the latest content window.location.reload(1); diff --git a/php/public/style.css b/php/public/style.css index 8f58440ee4d..f34b20bfc3a 100644 --- a/php/public/style.css +++ b/php/public/style.css @@ -85,7 +85,7 @@ div.toast { padding: 12px; margin-top: 45px; position: fixed; - z-index: 1; + z-index: 1000; border-radius: 3px; background: none; background-color: white;