Load table data on 'tableBuilt' event

Before this change, the tables would not get consistently populated
with the jobs or task data. Thanks Sybren for the fix!
This commit is contained in:
Francesco Siddi 2022-05-05 17:04:08 +02:00
parent ba34652cd1
commit a70438ec4f
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ export default {
this.tabulator = new Tabulator('#flamenco_job_list', this.options);
this.tabulator.on("rowSelected", this.onRowSelected);
this.tabulator.on("rowDeselected", this.onRowDeselected);
this.fetchAllJobs();
this.tabulator.on("tableBuilt", this.fetchAllJobs);
},
methods: {
onReconnected() {

View File

@ -67,7 +67,7 @@ export default {
this.tabulator = new Tabulator('#flamenco_task_list', this.options);
this.tabulator.on("rowSelected", this.onRowSelected);
this.tabulator.on("rowDeselected", this.onRowDeselected);
this.fetchTasks();
this.tabulator.on("tableBuilt", this.fetchTasks);
},
watch: {
jobID() {