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 | 1x 1x 1x 1x 1x 2x 2x 2x | import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { Basket } from 'ish-core/models/basket/basket.model';
import { GenerateLazyComponent } from 'ish-core/utils/module-loader/generate-lazy-component.decorator';
import { RequisitionManagementFacade } from '../../facades/requisition-management.facade';
import { Requisition } from '../../models/requisition/requisition.model';
@GenerateLazyComponent()
@Component({
selector: 'ish-checkout-receipt-requisition',
templateUrl: './checkout-receipt-requisition.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class CheckoutReceiptRequisitionComponent implements OnInit {
@Input({ required: true }) basket: Basket;
requisition$: Observable<Requisition>;
constructor(private requisitionManagementFacade: RequisitionManagementFacade) {}
ngOnInit() {
if (this.basket) {
this.requisition$ = this.requisitionManagementFacade.requisition$(this.basket.id);
}
}
}
|