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
pull/5/head
Oliver Giles 7 years ago
parent e7aa979303
commit 713462f37f

@ -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) {

Loading…
Cancel
Save