All files / src/app/extensions/quoting/shared/quote-interactions quote-interactions.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 223x                                          
@if (quote$ | async; as quote) { @if (state$ | async; as state) { @if (quote.items?.length) {
<div class="clearfix">
  @if (state === 'New') {
  <button data-testing-id="submit-quote-request" type="submit" class="btn btn-primary float-end" (click)="submit()">
    {{ 'quote.edit.button.submit.label' | translate }}
  </button>
  } @if (state === 'Responded' && (isQuoteValid$ | async)) {
  <button type="submit" class="btn btn-primary float-end" name="add2cart" (click)="addToBasket()">
    {{ 'quote.edit.button.add_quote_to_cart.label' | translate }}
  </button>
  } @if (quote.type === 'Quote' || state === 'Submitted') {
  <button data-testing-id="copy-quote-request" class="btn btn-secondary" name="copy" type="submit" (click)="copy()">
    {{ 'quote.edit.button.create_new_from_quote.label' | translate }}
  </button>
  } @if (state === 'Responded') {
  <button type="submit" id="button-reject" class="btn btn-secondary float-end" name="refuse" (click)="reject()">
    {{ 'quote.edit.reject.button.reject.label' | translate }}
  </button>
  }
</div>
} } }