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
|
||||
}
|
||||
|
|
|
@ -703,6 +703,7 @@
|
|||
"comment": "Comment",
|
||||
"delete": "Delete this comment",
|
||||
"deleteText1": "Are you sure you want to delete this comment?",
|
||||
"deleteSuccess": "The comment was deleted successfully.",
|
||||
"addedSuccess": "The comment was added successfully."
|
||||
},
|
||||
"deferDueDate": {
|
||||
|
|
Loading…
Reference in a new issue