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
commit 4c2acbb747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;