diff --git a/webapp/src/components/DynamicDataTable.vue b/webapp/src/components/DynamicDataTable.vue index 76df1c10f..ec1759ace 100644 --- a/webapp/src/components/DynamicDataTable.vue +++ b/webapp/src/components/DynamicDataTable.vue @@ -32,6 +32,7 @@ :filters="filters" :editable-inventory="editable_inventory" :show-buttons="showButtons" + @update:filters="updateFilters" @open-create-item-modal="createItemModalIsOpen = true" @open-batch-create-item-modal="batchCreateItemModalIsOpen = true" @open-qr-scanner-modal="qrScannerModalIsOpen = true" @@ -362,6 +363,9 @@ export default { }); }, methods: { + updateFilters(newFilters) { + this.filters = newFilters; + }, goToEditPage(event) { const row = event.data; let row_id = null; diff --git a/webapp/src/components/DynamicDataTableButtons.vue b/webapp/src/components/DynamicDataTableButtons.vue index b32e9bbb4..35cff1ae4 100644 --- a/webapp/src/components/DynamicDataTableButtons.vue +++ b/webapp/src/components/DynamicDataTableButtons.vue @@ -164,6 +164,9 @@ export default { this.isSelectedDropdownVisible = false; } }, + "localFilters.global.value"(newValue) { + this.$emit("update:filters", { ...this.filters, global: { value: newValue } }); + }, }, methods: { confirmDeletion() {