#328425 Hide "view requests" button when group does not require approval.

This commit is contained in:
Georgi Prodanov 2017-02-06 12:44:01 +02:00
Родитель 855212de88
Коммит 5e7ff21aa7
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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="&#x6d;"></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="&#x6b;"></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="&#x76;"></Label>
<Label class="btn-text" text="Leave Group"></Label>
</StackLayout>