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 | 1x 1x 1x 1x | import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core';
import { Observable } from 'rxjs';
import { QuotingFacade } from '../../facades/quoting.facade';
import { Quote, QuoteStatus } from '../../models/quoting/quoting.model';
@Component({
selector: 'ish-quote-expiration-date',
templateUrl: './quote-expiration-date.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class QuoteExpirationDateComponent implements OnChanges {
@Input({ required: true }) quote: Partial<Pick<Quote, 'id' | 'validToDate'>>;
state$: Observable<QuoteStatus>;
constructor(private quotingFacade: QuotingFacade) {}
ngOnChanges() {
this.state$ = this.quotingFacade.state$(this.quote?.id);
}
}
|