FIX: Only show membership status on index page.

This commit is contained in:
Guo Xiang Tan 2016-12-20 15:50:12 +08:00
parent 9db5d5b6a7
commit 6461021046
2 changed files with 11 additions and 6 deletions

View File

@ -14,11 +14,13 @@
{{/if}}
{{else if canRequestMembership}}
{{#if model.is_group_user}}
{{#if showMembershipStatus}}
{{d-button
class="btn-primary"
icon="user"
label="groups.is_group_user"
disabled=model.is_group_user}}
disabled=true}}
{{/if}}
{{else}}
{{d-button action="requestMembership"
class="group-index-request"

View File

@ -45,7 +45,10 @@
<td class="groups-user-count">{{group.user_count}}</td>
<td>
{{#group-membership-button model=group createNewMessageViaParams='createNewMessageViaParams'}}
{{#group-membership-button model=group
createNewMessageViaParams='createNewMessageViaParams'
showMembershipStatus=true}}
{{d-button icon="ban"
label=(if group.automatic 'groups.automatic_group' 'groups.closed_group')
disabled=true}}