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 Reactions from '@/components/input/Reactions.vue'
const props = defineProps({
taskId: {
type: Number,
required: true,
},
canWrite: {
type: Boolean,
default: true,
},
const props = withDefaults(defineProps<{
taskId: number,
canWrite?: boolean
}>(), {
canWrite: true,
})
const {t} = useI18n({useScope: 'global'})