feat: add success message after deleting a comment
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2022-05-15 22:43:31 +02:00
parent fee2fe76ce
commit 246d6794d8
Signed by: konrad
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": {