Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | 2x | <div *ngIf="wishlists?.length > 0; else noWishlist" class="list-body"> <ng-container *ngTemplateOutlet="wishlistRow; context: { wishlist: preferredWishlist }" /> <ng-container *ngFor="let wishlist of wishlists"> <ng-container *ngIf="!preferredWishlist || wishlist.id !== preferredWishlist.id"> <ng-container *ngTemplateOutlet="wishlistRow; context: { wishlist: wishlist }" /> </ng-container> </ng-container> </div> <ng-template #noWishlist> <p>{{ 'account.wishlists.no_wishlists' | translate }}</p> </ng-template> <ng-template #wishlistRow let-wishlist="wishlist"> <div *ngIf="wishlist" class="list-item-row row mx-0" data-testing-id="wishlist-list-item-container"> <div class="col-7 list-item" data-testing-id="wishlist-list-item"> <a [routerLink]="'/account/wishlists/' + wishlist.id" data-testing-id="wishlist-list-title">{{ wishlist.title }}</a ><span *ngIf="wishlist.preferred" class="input-help pl-3">{{ 'account.wishlists.table.preferred' | translate }}</span> </div> <div class="col-2 list-item"> {{ 'account.wishlists.items' | translate : { '0': wishlist.itemsCount } }} </div> <div class="col-3 list-item text-right"> <button type="button" class="btn-tool btn-link" title="{{ 'account.wishlist.list.remove' | translate }}" (click)="openDeleteConfirmationDialog(wishlist, deleteDialog)" data-testing-id="delete-wishlist" > <fa-icon [icon]="['fas', 'trash-alt']" /> </button> </div> </div> </ng-template> <!-- the title will be set dynamically --> <ish-modal-dialog #deleteDialog [options]="{ titleText: 'undefined', confirmText: 'account.wishlists.delete_wishlist_dialog.delete_button.text' | translate, rejectText: 'account.wishlists.delete_wishlist_dialog.cancel_button.text' | translate }" (confirmed)="delete($event)" > {{ 'account.wishlists.delete_wishlist_dialog.are_you_sure_paragraph' | translate }} </ish-modal-dialog> |