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:
parent
7b78a1a2cd
commit
079b0f4bff
|
@ -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();
|
||||
|
|
|
@ -48,21 +48,6 @@
|
|||
icon="envelope"
|
||||
label="user.private_message"}}
|
||||
</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 showFilter}}
|
||||
|
|
Loading…
Reference in New Issue