Skip to content

Commit bc5cc53

Browse files
committed
Fix broken reload on clicking the restart button on UI
1 parent b1696c0 commit bc5cc53

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

frontend/src/App.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,10 @@ export default Vue.extend({
163163
// Poll until there's a 200 response, waiting for the app
164164
// to restart and come back up.
165165
const pollId = setInterval(() => {
166-
clearInterval(pollId);
167-
this.$utils.toast('Reload complete');
168-
document.location.reload();
166+
this.$api.getHealth().then(() => {
167+
clearInterval(pollId);
168+
document.location.reload();
169+
});
169170
}, 500);
170171
});
171172
},

0 commit comments

Comments
 (0)