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"
|
:has-title="true"
|
||||||
class="filter-popup"
|
class="filter-popup"
|
||||||
@update:modelValue="emitChanges"
|
@update:modelValue="emitChanges"
|
||||||
|
@showResultsButtonClicked="() => modalOpen = false"
|
||||||
/>
|
/>
|
||||||
</modal>
|
</modal>
|
||||||
</template>
|
</template>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
>
|
>
|
||||||
<x-button
|
<x-button
|
||||||
variant="primary"
|
variant="primary"
|
||||||
@click.prevent.stop="change()"
|
@click.prevent.stop="changeAndEmitButton"
|
||||||
>
|
>
|
||||||
{{ $t('filters.showResults') }}
|
{{ $t('filters.showResults') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
@ -61,7 +61,7 @@ const {
|
|||||||
modelValue: TaskFilterParams,
|
modelValue: TaskFilterParams,
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelValue'])
|
const emit = defineEmits(['update:modelValue', 'showResultsButtonClicked'])
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const projectId = computed(() => {
|
const projectId = computed(() => {
|
||||||
@ -125,4 +125,9 @@ function change() {
|
|||||||
|
|
||||||
emit('update:modelValue', newParams)
|
emit('update:modelValue', newParams)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function changeAndEmitButton() {
|
||||||
|
change()
|
||||||
|
emit('showResultsButtonClicked')
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user