#328425 Hide "view requests" button when group does not require approval.
This commit is contained in:
Родитель
855212de88
Коммит
5e7ff21aa7
|
@ -23,16 +23,16 @@
|
|||
|
||||
<Label class="btn btn-primary join-group" *ngIf="hasJoined === false" [text]="getJoinBtnText()" (tap)="onJoin()"></Label>
|
||||
|
||||
<GridLayout *ngIf="hasJoined === true" class="action-bar" [ngClass]="{ 'admin': !canEdit() }" [attr.columns]="canEdit() ? '*, *, *' : '*, *'">
|
||||
<StackLayout *ngIf="canEdit()" class="btn" (tap)="onViewRequests()" col="0">
|
||||
<GridLayout *ngIf="hasJoined === true" class="action-bar" [ngClass]="{ 'admin': !canEdit() }" [attr.columns]="(canEdit() && group.RequiresApproval) ? '*, *, *' : '*, *'">
|
||||
<StackLayout *ngIf="group.RequiresApproval && canEdit()" class="btn" (tap)="onViewRequests()" col="0">
|
||||
<Label class="btn-icon if" text="m"></Label>
|
||||
<Label class="btn-text" text="See requests"></Label>
|
||||
</StackLayout>
|
||||
<StackLayout class="btn" (tap)="onViewEvents()" [attr.col]="canEdit() ? 1 : 0">
|
||||
<StackLayout class="btn" (tap)="onViewEvents()" [attr.col]="(canEdit() && group.RequiresApproval) ? 1 : 0">
|
||||
<Label class="btn-icon if" text="k"></Label>
|
||||
<Label class="btn-text" text="See Events"></Label>
|
||||
</StackLayout>
|
||||
<StackLayout class="btn" (tap)="onLeave()" [attr.col]="canEdit() ? 2 : 1">
|
||||
<StackLayout class="btn" (tap)="onLeave()" [attr.col]="(canEdit() && group.RequiresApproval) ? 2 : 1">
|
||||
<Label class="btn-icon if" text="v"></Label>
|
||||
<Label class="btn-text" text="Leave Group"></Label>
|
||||
</StackLayout>
|
||||
|
|
Загрузка…
Ссылка в новой задаче