mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-03-02 03:40:21 +00:00
update vue and vue-router
to 2.6.12 and 3.4.8 respectively, as they are the versions available in Debian. fix an exposed issue where the status handler attempted to manipulate the DOM before vue had rendered it - such manipulations need to be deferred with $nextTick().
This commit is contained in:
@@ -433,11 +433,14 @@ const Home = templateId => {
|
||||
state.lowPassRates = msg.lowPassRates;
|
||||
this.$forceUpdate();
|
||||
|
||||
chtUtilization = Charts.createExecutorUtilizationChart("chartUtil", msg.executorsBusy, msg.executorsTotal);
|
||||
chtBuildsPerDay = Charts.createRunsPerDayChart("chartBpd", msg.buildsPerDay);
|
||||
chtBuildsPerJob = Charts.createRunsPerJobChart("chartBpj", msg.buildsPerJob);
|
||||
chtTimePerJob = Charts.createTimePerJobChart("chartTpj", msg.timePerJob);
|
||||
chtBuildTimeChanges = Charts.createRunTimeChangesChart("chartBuildTimeChanges", msg.buildTimeChanges);
|
||||
// defer charts to nextTick because they get DOM elements which aren't rendered yet
|
||||
this.$nextTick(() => {
|
||||
chtUtilization = Charts.createExecutorUtilizationChart("chartUtil", msg.executorsBusy, msg.executorsTotal);
|
||||
chtBuildsPerDay = Charts.createRunsPerDayChart("chartBpd", msg.buildsPerDay);
|
||||
chtBuildsPerJob = Charts.createRunsPerJobChart("chartBpj", msg.buildsPerJob);
|
||||
chtTimePerJob = Charts.createTimePerJobChart("chartTpj", msg.timePerJob);
|
||||
chtBuildTimeChanges = Charts.createRunTimeChangesChart("chartBuildTimeChanges", msg.buildTimeChanges);
|
||||
});
|
||||
},
|
||||
job_queued: function(data) {
|
||||
state.jobsQueued.splice(0, 0, data);
|
||||
@@ -590,7 +593,11 @@ const Job = templateId => {
|
||||
// old chart and recreate it to prevent flickering of old data
|
||||
if(chtBt)
|
||||
chtBt.destroy();
|
||||
chtBt = Charts.createRunTimeChart("chartBt", msg.recent, msg.averageRuntime);
|
||||
|
||||
// defer chart to nextTick because they get DOM elements which aren't rendered yet
|
||||
this.$nextTick(() => {
|
||||
chtBt = Charts.createRunTimeChart("chartBt", msg.recent, msg.averageRuntime);
|
||||
});
|
||||
},
|
||||
job_queued: function() {
|
||||
state.nQueued++;
|
||||
|
||||
Reference in New Issue
Block a user