FIX: Remove ignore user feature from `user-card-contents` component (#7104)

Based on our discussions, we want to have the `Ignore button will ONLY be on the User’s profile page`.
This commit is contained in:
Tarek Khalil 2019-03-04 15:21:45 +00:00 committed by GitHub
parent 7b78a1a2cd
commit 079b0f4bff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 20 deletions

View File

@ -195,11 +195,6 @@ export default Ember.Component.extend(
this._close(); this._close();
}, },
ignoreUser() {
this.get("user").ignore();
this._close();
},
watchUser() { watchUser() {
this.get("user").watch(); this.get("user").watch();
this._close(); this._close();

View File

@ -48,21 +48,6 @@
icon="envelope" icon="envelope"
label="user.private_message"}} label="user.private_message"}}
</li> </li>
{{#if user.can_ignore_user}}
<li>
{{#if user.ignored}}
{{d-button class="btn-default"
action=(action "watchUser")
icon="far-eye"
label="user.watch"}}
{{else}}
{{d-button class="btn-danger"
action=(action "ignoreUser")
icon="far-eye-slash"
label="user.ignore"}}
{{/if}}
</li>
{{/if}}
{{/if}} {{/if}}
{{#if showFilter}} {{#if showFilter}}