1
0

feat: use withDefaults for PriorityLabel

This commit is contained in:
Dominik Pschenitschni 2024-07-06 13:25:07 +02:00 committed by konrad
parent 5af908b2e5
commit 871e0acd8a

View File

@ -30,19 +30,14 @@
<script setup lang="ts">
import {PRIORITIES as priorities} from '@/constants/priorities'
defineProps({
priority: {
default: 0,
type: Number,
},
showAll: {
type: Boolean,
default: false,
},
done: {
type: Boolean,
default: false,
},
withDefaults(defineProps<{
priority: number,
showAll?: boolean,
done?: boolean
}>(), {
priority: priorities.UNSET,
showAll: false,
done: false,
})
</script>