Skip to content

Commit

Permalink
Merge pull request #3027 from nextcloud/enh/noid/reload-server-error
Browse files Browse the repository at this point in the history
reload also in case of server error
  • Loading branch information
szaimen authored Aug 9, 2023
2 parents d3d6745 + 3064bd5 commit 4c2acbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions php/public/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion php/public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4c2acbb

Please sign in to comment.