From 079b0f4bff63e15761db5b6065ab8b149f33f958 Mon Sep 17 00:00:00 2001 From: Tarek Khalil <45508821+khalilovcmded@users.noreply.github.com> Date: Mon, 4 Mar 2019 15:21:45 +0000 Subject: [PATCH] FIX: Remove ignore user feature from `user-card-contents` component (#7104) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on our discussions, we want to have the `Ignore button will ONLY be on the User’s profile page`. --- .../components/user-card-contents.js.es6 | 5 ----- .../templates/components/user-card-contents.hbs | 15 --------------- 2 files changed, 20 deletions(-) diff --git a/app/assets/javascripts/discourse/components/user-card-contents.js.es6 b/app/assets/javascripts/discourse/components/user-card-contents.js.es6 index 4849a917af8..f81fc71af04 100644 --- a/app/assets/javascripts/discourse/components/user-card-contents.js.es6 +++ b/app/assets/javascripts/discourse/components/user-card-contents.js.es6 @@ -195,11 +195,6 @@ export default Ember.Component.extend( this._close(); }, - ignoreUser() { - this.get("user").ignore(); - this._close(); - }, - watchUser() { this.get("user").watch(); this._close(); diff --git a/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs b/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs index 8df8e1e5cdb..e9cb6048aaa 100644 --- a/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs +++ b/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs @@ -48,21 +48,6 @@ icon="envelope" label="user.private_message"}} - {{#if user.can_ignore_user}} -