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
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
54994a1671
commit
308e634c71
@ -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')"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user