From 246d6794d8346688d6dae69fb93a9b3dca8b7fd5 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 15 May 2022 22:43:31 +0200 Subject: [PATCH] feat: add success message after deleting a comment --- src/components/tasks/partials/comments.vue | 1 + src/i18n/lang/en.json | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/tasks/partials/comments.vue b/src/components/tasks/partials/comments.vue index cac1e225..f9b897d3 100644 --- a/src/components/tasks/partials/comments.vue +++ b/src/components/tasks/partials/comments.vue @@ -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 } diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index d9b77e14..f0f596bb 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -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": {