mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
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
This commit is contained in:
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…
Reference in New Issue
Block a user