Explorar o código

Fix broken reload on clicking the restart button on UI

Kailash Nadh %!s(int64=4) %!d(string=hai) anos
pai
achega
bc5cc53f28
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      frontend/src/App.vue

+ 4 - 3
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);
       });
     },