All files / src/app/pages/data-request data-request-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                                            
<ng-container *ngIf="error$ | async">
  <ish-error-message [error]="error$ | async" [toast]="false" />
  <h1 data-testing-id="empty-confirmation-title">
    {{ 'personal.data.request.confirmation.empty.heading' | translate }}
  </h1>
  <div [ishServerHtml]="'personal.data.request.confirmation.empty.message' | translate"></div>
</ng-container>
<ng-container *ngIf="(loading$ | async) === false && !!(error$ | async) === false">
  <ng-container *ngIf="firstGDPRDataRequest$ | async; else dataRequestedBefore">
    <h1 data-testing-id="successful-confirmation-title">
      {{ 'personal.data.request.confirmation.success.heading' | translate }}
    </h1>
    <div [ishServerHtml]="'personal.data.request.confirmation.success.message' | translate"></div>
  </ng-container>
  <ng-template #dataRequestedBefore>
    <h1 data-testing-id="already-confirmed-title">
      {{ 'personal.data.request.confirmation.confirmed.heading' | translate }}
    </h1>
    <div [ishServerHtml]="'personal.data.request.confirmation.confirmed.message' | translate"></div>
  </ng-template>
</ng-container>
<ish-loading *ngIf="loading$ | async" />