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();
|
this._close();
|
||||||
},
|
},
|
||||||
|
|
||||||
ignoreUser() {
|
|
||||||
this.get("user").ignore();
|
|
||||||
this._close();
|
|
||||||
},
|
|
||||||
|
|
||||||
watchUser() {
|
watchUser() {
|
||||||
this.get("user").watch();
|
this.get("user").watch();
|
||||||
this._close();
|
this._close();
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Reference in New Issue