All files / src/app/extensions/quoting/pages/quote quote-page.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

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 231x                                            
@if (selectedQuote$ | async; as quote) { @if (state$ | async; as state) {
<!-- Title -->
<h1>
  @switch (true) { @case (state === 'Submitted' && (justSubmitted$ | async)) {
  {{ 'quote.edit.submitted.heading' | translate }}
  } @case (state === 'Responded') {
  {{ 'quote.edit.responded.quote_details.text' | translate }} - {{ quote.displayName || quote.number }}
  } @default {
  {{ 'quote.edit.unsubmitted.quote_request_details.text' | translate }} - {{ quote.displayName || quote.number }}
  } }
</h1>
<ish-error-message [error]="error$ | async" />
@if (state === 'New') {
<ish-quote-edit />
} @else {
<ish-quote-view />
}
<ish-quote-interactions />
<a [routerLink]="['/account/quotes']" class="d-block mt-3">{{ 'quote.edit.back_to_quotes.link' | translate }}</a>
} } @if (loading$ | async) {
<ish-loading />
}