}
public function delete($comment) {
- $comment->text = trans('activities.comment_deleted');
- $comment->html = trans('activities.comment_deleted');
+ $comment->text = trans('entities.comment_deleted');
+ $comment->html = trans('entities.comment_deleted');
$comment->active = false;
$userId = user()->id;
$comment->updated_by = $userId;
comment.updated_by = resp.comment.updated_by;
comment.active = resp.comment.active;
if (isDelete && !resp.comment.active) {
- comment.html = trans('activities.comment_deleted');
+ comment.html = trans('entities.comment_deleted');
} else {
comment.html = resp.comment.html;
}
});
element.on('click', function () {
- var $container = element.parents('.comment-box').first();
+ var $container = element.parents('.comment-actions').first();
if (!$container.length) {
console.error('commentReplyLink directive should be placed inside a container with class comment-box!');
return;
'comment_create_notification' => '',
'comment_update_notification' => '',
'comment_delete_notification' => '',
- 'comment_deleted' => 'This comment has been deleted.'
];
'one_comment' => '1 Comment',
'comments_loading' => 'Loading...',
'comment_save' => 'Save Comment',
- 'comment_cancel' => 'Cancel'
+ 'comment_cancel' => 'Cancel',
+ 'comment_deleted' => 'This comment has been deleted.'
];
\ No newline at end of file
</div>
<div ng-if="::!comment.active" class="comment-body comment-inactive">
- {{ trans('activities.comment_deleted') }}
+ {{ trans('entities.comment_deleted') }}
</div>
<div class="comment-actions">
<ul ng-if="!comment.is_hidden">