Merge pull request #3027 from nextcloud/enh/noid/reload-server-error

reload also in case of server error
This commit is contained in:
Simon L
2023-08-09 10:11:30 +02:00
committed by GitHub
2 changed files with 6 additions and 3 deletions

View File

@@ -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);

View File

@@ -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;