From dffd7b57d335d83adacbe2d7cd638d207cffc468 Mon Sep 17 00:00:00 2001 From: Benjamin CHARMES Date: Wed, 25 Sep 2024 14:49:53 +0100 Subject: [PATCH] Fix selectall Fix selectall checkbox in DataTable --- webapp/src/components/DynamicDataTable.vue | 29 +++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/DynamicDataTable.vue b/webapp/src/components/DynamicDataTable.vue index 2fc5e9673..d000aaaba 100644 --- a/webapp/src/components/DynamicDataTable.vue +++ b/webapp/src/components/DynamicDataTable.vue @@ -7,17 +7,20 @@ @@ -40,6 +43,7 @@ + !itemsToRemove.includes(item)); + this.allSelected = event.checked; + } + }, deleteSelectedItems() { this.itemsSelected = []; }, handleItemsUpdated() { this.itemsSelected = []; }, + onPageChange(event) { + this.page = event.page; + this.rows = event.rows; + this.allSelected = false; + }, }, };