mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-03 09:20:09 +00:00
reload also in case of server error
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user