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:
parent
ba34652cd1
commit
a70438ec4f
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user