fix(task): make an attachment cover image
This commit is contained in:
parent
c4f6465569
commit
2c4da79c1b
@ -264,8 +264,8 @@ function copyUrl(attachment: IAttachment) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function setCoverImage(attachment: IAttachment | null) {
|
async function setCoverImage(attachment: IAttachment | null) {
|
||||||
const task = await taskStore.setCoverImage(task, attachment)
|
const updatedTask = await taskStore.setCoverImage(task, attachment)
|
||||||
emit('task-changed', task)
|
emit('task-changed', updatedTask)
|
||||||
success({message: t('task.attachment.successfullyChangedCoverImage')})
|
success({message: t('task.attachment.successfullyChangedCoverImage')})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user