feat: add success message after deleting a comment

This commit is contained in:
kolaente 2022-05-15 22:43:31 +02:00
parent fee2fe76ce
commit 246d6794d8
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 2 additions and 0 deletions

View file

@ -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
}

View file

@ -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": {