UX: hide chat button on user card when suspended (#20292)

This commit is contained in:
Joffrey JAFFEUX
2023-02-14 21:12:50 +01:00
committed by GitHub
parent 14a447175b
commit 585d1e2f4d
2 changed files with 19 additions and 1 deletions
@@ -1,4 +1,4 @@
{{#if this.chat.userCanDirectMessage}}
{{#if (and this.chat.userCanDirectMessage (not @user.suspended))}}
<DButton
@class="btn-primary user-card-chat-btn"
@action={{action "startChatting"}}