From 713462f37f0bfa46873a73f7a5f95f557938eb1a Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Mon, 14 Aug 2017 08:45:28 +0300 Subject: [PATCH] update progress bar when navigating between Runs When navigating between Run pages, the jobsRunning array used by the ProgressUpdater was cleared after the status message had inserted the new Run instead of before --- src/resources/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/js/app.js b/src/resources/js/app.js index 0a54cf0..c4c3111 100644 --- a/src/resources/js/app.js +++ b/src/resources/js/app.js @@ -384,6 +384,7 @@ const Run = function() { }, methods: { status: function(data) { + state.jobsRunning = []; state.log = ''; state.job = data; state.latestNum = data.latestNum; @@ -413,7 +414,6 @@ const Run = function() { }, beforeRouteUpdate(to, from, next) { var vm = this; - state.jobsRunning = []; vm.logws.close(); vm.logws = new WebSocket("ws://" + location.host + to.path + '/log'); vm.logws.onmessage = function(msg) {