1
0

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