From 95f1bafb80ab294f78b90512dd6fd0500d8ecaf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Wed, 16 Oct 2024 16:52:51 +0200 Subject: [PATCH] Update current prefilter ui to save/cancel form --- .../components/Common/RecordListFilter.vue | 2 +- .../PageBlocks/RecordList/Prefilter.vue | 109 +++++++++++------- 2 files changed, 66 insertions(+), 45 deletions(-) diff --git a/client/web/compose/src/components/Common/RecordListFilter.vue b/client/web/compose/src/components/Common/RecordListFilter.vue index c646dacdb..7c711665f 100644 --- a/client/web/compose/src/components/Common/RecordListFilter.vue +++ b/client/web/compose/src/components/Common/RecordListFilter.vue @@ -32,7 +32,7 @@ class="position-static w-100" > - - - - + + + @@ -144,11 +160,16 @@ export default { }, methods: { - toggleFilterView () { - if (!this.textInput) { - this.options.prefilter = this.parseFilter() || this.options.prefilter + saveFilter (filter) { + if (filter && filter[0] && !filter[0].filter[0].name) { + return } + this.options.prefilter = this.parseFilter() + this.toggleFilterInputType() + }, + + toggleFilterInputType () { this.textInput = !this.textInput },