From 9363f8667c0ae49bc6278bb0972c88d66359a84d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 8 Oct 2018 17:34:06 +0200 Subject: [PATCH] Add UI feedback for comment deletion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- js/controller/ActivityController.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/controller/ActivityController.js b/js/controller/ActivityController.js index f42548e0e..04390c152 100644 --- a/js/controller/ActivityController.js +++ b/js/controller/ActivityController.js @@ -245,12 +245,10 @@ class ActivityController { deleteComment(item) { item.commentModel.destroy(); item.deleted = true; + item.commentModel = undefined; + item.message = t('deck', 'The comment has been deleted'); } - getCommentDetails() {} - - - getData(id) { return this.activityservice.getData(this.type, id); }