mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
reload also in case of server error
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
b076d5ea1a
commit
3064bd56ab
2 changed files with 6 additions and 3 deletions
|
|
@ -33,8 +33,11 @@ function showPassword(id) {
|
||||||
disableSpinner()
|
disableSpinner()
|
||||||
showError(xhr.response);
|
showError(xhr.response);
|
||||||
} else if (xhr.status === 500) {
|
} else if (xhr.status === 500) {
|
||||||
disableSpinner()
|
showError("Server error. Please check the mastercontainer logs for details. This page will reload after 10s automatically. Then you can check the mastercontainer logs.");
|
||||||
showError("Server error. Please check the mastercontainer logs for details.");
|
// 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 {
|
} else {
|
||||||
// If the responose is not one of the above, we should reload to show the latest content
|
// If the responose is not one of the above, we should reload to show the latest content
|
||||||
window.location.reload(1);
|
window.location.reload(1);
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ div.toast {
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
margin-top: 45px;
|
margin-top: 45px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 1;
|
z-index: 1000;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background: none;
|
background: none;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue