This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2021-11-14 15:56:52 +00:00
|
|
|
<template>
|
2022-11-14 18:02:28 +00:00
|
|
|
<modal @submit="deleteFilter()">
|
2022-10-27 19:56:14 +00:00
|
|
|
<template #header>
|
|
|
|
<span>{{ $t('filters.delete.header') }}</span>
|
|
|
|
</template>
|
2021-11-14 15:56:52 +00:00
|
|
|
|
|
|
|
<template #text>
|
|
|
|
<p>{{ $t('filters.delete.text') }}</p>
|
|
|
|
</template>
|
|
|
|
</modal>
|
|
|
|
</template>
|
|
|
|
|
2022-02-15 12:07:34 +00:00
|
|
|
<script setup lang="ts">
|
2022-10-27 19:56:14 +00:00
|
|
|
import {toRef} from 'vue'
|
|
|
|
import type {IList} from '@/modelTypes/IList'
|
|
|
|
import {useSavedFilter} from '@/services/savedFilter'
|
2021-11-14 15:56:52 +00:00
|
|
|
|
2022-10-27 19:56:14 +00:00
|
|
|
const props = defineProps<{ listId: IList['id'] }>()
|
2021-11-14 15:56:52 +00:00
|
|
|
|
2022-10-27 19:56:14 +00:00
|
|
|
const {deleteFilter} = useSavedFilter(toRef(props, 'listId'))
|
2021-11-14 15:56:52 +00:00
|
|
|
</script>
|