mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
Merge pull request #3027 from nextcloud/enh/noid/reload-server-error
reload also in case of server error
This commit is contained in:
commit
4c2acbb747
2 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue