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