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}} {{/if}}
{{else if canRequestMembership}} {{else if canRequestMembership}}
{{#if model.is_group_user}} {{#if model.is_group_user}}
{{d-button {{#if showMembershipStatus}}
class="btn-primary" {{d-button
icon="user" class="btn-primary"
label="groups.is_group_user" icon="user"
disabled=model.is_group_user}} label="groups.is_group_user"
disabled=true}}
{{/if}}
{{else}} {{else}}
{{d-button action="requestMembership" {{d-button action="requestMembership"
class="group-index-request" class="group-index-request"

View File

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