浏览代码

Fix broken reload on clicking the restart button on UI

Kailash Nadh 4 年之前
父节点
当前提交
bc5cc53f28
共有 1 个文件被更改,包括 4 次插入3 次删除
  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
         // 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.$utils.toast('Reload complete');
-          document.location.reload();
+          this.$api.getHealth().then(() => {
+            clearInterval(pollId);
+            document.location.reload();
+          });
         }, 500);
         }, 500);
       });
       });
     },
     },