1
0

feat: use withDefaults for Comments

This commit is contained in:
Dominik Pschenitschni 2024-07-06 13:29:09 +02:00 committed by konrad
parent f2fdbad7d4
commit f19f19bb75

View File

@ -200,15 +200,11 @@ import {useConfigStore} from '@/stores/config'
import {useAuthStore} from '@/stores/auth' import {useAuthStore} from '@/stores/auth'
import Reactions from '@/components/input/Reactions.vue' import Reactions from '@/components/input/Reactions.vue'
const props = defineProps({ const props = withDefaults(defineProps<{
taskId: { taskId: number,
type: Number, canWrite?: boolean
required: true, }>(), {
}, canWrite: true,
canWrite: {
type: Boolean,
default: true,
},
}) })
const {t} = useI18n({useScope: 'global'}) const {t} = useI18n({useScope: 'global'})