Remove need for global resizeTasksListTable
function
This commit is contained in:
parent
1310e5c9e2
commit
60836c77e0
@ -83,6 +83,11 @@ export default {
|
|||||||
this.tabulator = new Tabulator('#flamenco_task_list', options);
|
this.tabulator = new Tabulator('#flamenco_task_list', options);
|
||||||
this.tabulator.on("rowClick", this.onRowClick);
|
this.tabulator.on("rowClick", this.onRowClick);
|
||||||
this.tabulator.on("tableBuilt", this._onTableBuilt);
|
this.tabulator.on("tableBuilt", this._onTableBuilt);
|
||||||
|
|
||||||
|
window.addEventListener('resize', this._setTableHeight);
|
||||||
|
},
|
||||||
|
unmounted() {
|
||||||
|
window.removeEventListener('resize', this._setTableHeight);
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
jobID() {
|
jobID() {
|
||||||
@ -189,11 +194,4 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function resizeTasksListTable() {
|
|
||||||
if (window.tasksTableVue) {
|
|
||||||
window.tasksTableVue._setTableHeight();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener('resize', resizeTasksListTable);
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user