Add UI feedback for comment deletion

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-10-08 17:34:06 +02:00
parent dcc3601bd7
commit 9363f8667c

View File

@@ -245,12 +245,10 @@ class ActivityController {
deleteComment(item) { deleteComment(item) {
item.commentModel.destroy(); item.commentModel.destroy();
item.deleted = true; item.deleted = true;
item.commentModel = undefined;
item.message = t('deck', 'The comment has been deleted');
} }
getCommentDetails() {}
getData(id) { getData(id) {
return this.activityservice.getData(this.type, id); return this.activityservice.getData(this.type, id);
} }