-
-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display spinner on submit + refresh category (#1388)
- Loading branch information
Showing
24 changed files
with
218 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 21 additions & 5 deletions
26
frontend/projects/public/src/app/ticket-quantity-selector/ticket-quantity-selector.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
<div [formGroup]="parentGroup"> | ||
<ng-container *ngIf="category.saleableAndLimitNotReached"> | ||
@if (category.saleableAndLimitNotReached) { | ||
<label class="sr-only" [for]="'category-'+category.id+'-qty'" translate="show-event.category.quantity"></label> | ||
<select [id]="'category-'+category.id+'-qty'" formControlName="amount" class="form-select" (change)="selectionChanged()"> | ||
<option *ngFor="let qty of quantityRange" [ngValue]="qty">{{qty}}</option> | ||
@for (qty of quantityRange; track qty) { | ||
<option [ngValue]="qty">{{qty}}</option> | ||
} | ||
</select> | ||
</ng-container> | ||
<span class="font-weight-bold" *ngIf="!category.saleableAndLimitNotReached && category.soldOutOrLimitReached" translate="show-event.sold-out"></span> | ||
<span class="font-weight-bold" *ngIf="!category.saleableAndLimitNotReached && !category.soldOutOrLimitReached" translate="show-event.not-available"></span> | ||
} @else { | ||
<div class="d-flex flex-column align-items-center gap-2"> | ||
@if (category.containsPendingTickets) { | ||
<span class="fw-bold" translate="show-event.all-tickets-reserved"></span> | ||
} @else if (category.soldOutOrLimitReached) { | ||
<span class="fw-bold" translate="show-event.sold-out"></span> | ||
} @else { | ||
<span class="fw-bold" translate="show-event.not-available"></span> | ||
} | ||
|
||
@if (category.containsPendingTickets || !category.soldOutOrLimitReached) { | ||
<button type="button" class="btn btn-sm btn-default" (click)="refreshCategories()"> | ||
<fa-icon [icon]="['fas', 'redo-alt']"></fa-icon> {{'common.refresh' | translate}} | ||
</button> | ||
} | ||
</div> | ||
} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.