Fix broken reload on clicking the restart button on UI
This commit is contained in:
parent
b1696c0fb9
commit
bc5cc53f28
|
@ -163,9 +163,10 @@ export default Vue.extend({
|
|||
// Poll until there's a 200 response, waiting for the app
|
||||
// to restart and come back up.
|
||||
const pollId = setInterval(() => {
|
||||
this.$api.getHealth().then(() => {
|
||||
clearInterval(pollId);
|
||||
this.$utils.toast('Reload complete');
|
||||
document.location.reload();
|
||||
});
|
||||
}, 500);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue