Skip to content

Commit

Permalink
reload also in case of server error
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Jul 24, 2023
1 parent b076d5e commit 151c6fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions php/public/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ function showPassword(id) {
} else if (xhr.status === 500) {
disableSpinner()
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 {
// If the responose is not one of the above, we should reload to show the latest content
window.location.reload(1);
Expand Down

0 comments on commit 151c6fe

Please sign in to comment.