feat: add success message after deleting a comment
This commit is contained in:
parent
fee2fe76ce
commit
246d6794d8
2 changed files with 2 additions and 0 deletions
|
|
@ -292,6 +292,7 @@ async function deleteComment(commentToDelete: TaskCommentModel) {
|
|||
await taskCommentService.delete(commentToDelete)
|
||||
const index = comments.value.findIndex(({id}) => id === commentToDelete.id)
|
||||
comments.value.splice(index, 1)
|
||||
success({message: t('task.comment.deleteSuccess')})
|
||||
} finally {
|
||||
showDeleteModal.value = false
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue