fix(task): do not show close button when the task was not opened via modal
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kolaente 2024-09-29 13:36:30 +02:00
parent 54994a1671
commit 308e634c71
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 5 additions and 0 deletions

@ -16,6 +16,7 @@
:is-done="task.done"
/>
<BaseButton
v-if="hasClose"
class="close"
@click="$emit('close')"
>
@ -33,6 +34,7 @@
{{ task.title.trim() }}
</h1>
<BaseButton
v-if="hasClose"
class="close"
@click="$emit('close')"
>
@ -78,8 +80,10 @@ import {getHexColor, getTaskIdentifier} from '@/models/task'
const props = withDefaults(defineProps<{
task: ITask,
canWrite: boolean | undefined,
hasClose: boolean | undefined,
}>(), {
canWrite: false,
hasClose: false,
})
const emit = defineEmits<{

@ -15,6 +15,7 @@
ref="heading"
:task="task"
:can-write="canWrite"
:has-close="isModal"
@update:task="Object.assign(task, $event)"
@close="$emit('close')"
/>