|
| 1 | +<div class="batch-acl-dialog"> |
| 2 | + <div *nzModalTitle>{{ titleKey | translate }}</div> |
| 3 | + |
| 4 | + <nz-alert |
| 5 | + [nzType]="isActionable ? 'info' : 'error'" |
| 6 | + [nzDescription]="messageKey | translate" |
| 7 | + ></nz-alert> |
| 8 | + |
| 9 | + <div class="review-list" *ngIf="isBatch"> |
| 10 | + <div class="review-item" *ngFor="let item of items"> |
| 11 | + <div class="review-header"> |
| 12 | + <strong>{{ item.asset.name }}</strong> |
| 13 | + <nz-tag [nzColor]="statusType[item.status]">{{ |
| 14 | + 'Batch review status ' + item.status | translate |
| 15 | + }}</nz-tag> |
| 16 | + </div> |
| 17 | + <div class="review-detail" *ngIf="isReview && item.status === 'pending'"> |
| 18 | + {{ 'Assignees' | translate }}: {{ item.assignees }} |
| 19 | + <button nz-button nzType="link" nzSize="small" (click)="onCopyLink(item)"> |
| 20 | + {{ 'Copy link' | translate }} |
| 21 | + </button> |
| 22 | + </div> |
| 23 | + <div class="review-detail error" *ngIf="item.detail">{{ item.detail }}</div> |
| 24 | + </div> |
| 25 | + </div> |
| 26 | + |
| 27 | + <div class="single-detail" *ngIf="!isBatch && isReview && singleItem?.status === 'pending'"> |
| 28 | + {{ 'Assignees' | translate }}: {{ singleItem.assignees }} |
| 29 | + <button nz-button nzType="link" nzSize="small" (click)="onCopyLink(singleItem)"> |
| 30 | + {{ 'Copy link' | translate }} |
| 31 | + </button> |
| 32 | + </div> |
| 33 | + |
| 34 | + <iframe |
| 35 | + *ngIf="faceVerifyUrl" |
| 36 | + class="face-verify-frame" |
| 37 | + [src]="faceVerifyUrl" |
| 38 | + allow="camera" |
| 39 | + sandbox="allow-scripts allow-same-origin" |
| 40 | + ></iframe> |
| 41 | + |
| 42 | + <div *nzModalFooter> |
| 43 | + <button nz-button [disabled]="isSubmitting" (click)="onClose()"> |
| 44 | + {{ closeTextKey | translate }} |
| 45 | + </button> |
| 46 | + <button nz-button nzType="primary" *ngIf="isActionable && !submitted" (click)="onConfirm()"> |
| 47 | + {{ actionTextKey | translate }} |
| 48 | + </button> |
| 49 | + </div> |
| 50 | +</div> |
0 commit comments