fix(filters): close filter popup when clicking on show results
This commit is contained in:
parent
4e6e0608c7
commit
d628471d0e
@ -26,6 +26,7 @@
|
||||
:has-title="true"
|
||||
class="filter-popup"
|
||||
@update:modelValue="emitChanges"
|
||||
@showResultsButtonClicked="() => modalOpen = false"
|
||||
/>
|
||||
</modal>
|
||||
</template>
|
||||
|
@ -27,7 +27,7 @@
|
||||
>
|
||||
<x-button
|
||||
variant="primary"
|
||||
@click.prevent.stop="change()"
|
||||
@click.prevent.stop="changeAndEmitButton"
|
||||
>
|
||||
{{ $t('filters.showResults') }}
|
||||
</x-button>
|
||||
@ -61,7 +61,7 @@ const {
|
||||
modelValue: TaskFilterParams,
|
||||
}>()
|
||||
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
const emit = defineEmits(['update:modelValue', 'showResultsButtonClicked'])
|
||||
|
||||
const route = useRoute()
|
||||
const projectId = computed(() => {
|
||||
@ -125,4 +125,9 @@ function change() {
|
||||
|
||||
emit('update:modelValue', newParams)
|
||||
}
|
||||
|
||||
function changeAndEmitButton() {
|
||||
change()
|
||||
emit('showResultsButtonClicked')
|
||||
}
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user