FIX: Only show membership status on index page.
This commit is contained in:
parent
9db5d5b6a7
commit
6461021046
|
@ -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"
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Reference in New Issue