FIX: Only show membership status on index page.
This commit is contained in:
parent
9db5d5b6a7
commit
6461021046
|
@ -14,11 +14,13 @@
|
|||
{{/if}}
|
||||
{{else if canRequestMembership}}
|
||||
{{#if model.is_group_user}}
|
||||
{{d-button
|
||||
class="btn-primary"
|
||||
icon="user"
|
||||
label="groups.is_group_user"
|
||||
disabled=model.is_group_user}}
|
||||
{{#if showMembershipStatus}}
|
||||
{{d-button
|
||||
class="btn-primary"
|
||||
icon="user"
|
||||
label="groups.is_group_user"
|
||||
disabled=true}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{d-button action="requestMembership"
|
||||
class="group-index-request"
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue