mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-03-02 03:40:21 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user