From bc5cc53f286e74738802935dfb1303fffa4c91bf Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 13 Feb 2021 13:14:52 +0530 Subject: [PATCH] Fix broken reload on clicking the restart button on UI --- frontend/src/App.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 0198a67..a7d58a7 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -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(() => { - clearInterval(pollId); - this.$utils.toast('Reload complete'); - document.location.reload(); + this.$api.getHealth().then(() => { + clearInterval(pollId); + document.location.reload(); + }); }, 500); }); },