-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathacl-dialog.component.html
More file actions
55 lines (50 loc) · 1.7 KB
/
Copy pathacl-dialog.component.html
File metadata and controls
55 lines (50 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<div class="acl-dialog">
<div *nzModalTitle>
{{ content?.title | translate }}
</div>
<ng-container>
<div [class.error-message]="content.isError">
<nz-alert
[nzType]="content.isError ? 'error' : 'info'"
class="content-message"
[nzDescription]="alertContent"
>
<ng-template #alertContent>
<div>{{ content.message | translate }}</div>
<ng-container *ngIf="content.customContent?.type === 'link'">
<br />
<a [href]="content.customContent.link">{{
content.customContent.linkText | translate
}}</a>
</ng-container>
<ng-container *ngIf="content.customContent?.type === 'ticket'">
<br /><br />
{{ 'Assignees' | translate }}: <b>{{ content.customContent.assignees }}</b> <br /><br />
{{ 'Do not close this page' | translate }}
<br /><br />
<div class="loading-bar">
<div class="loading-bar-progress"></div>
</div>
</ng-container>
</ng-template>
</nz-alert>
</div>
</ng-container>
<!-- Face verify capture iframe -->
<ng-container *ngIf="code === 'face_verify_capture' && faceVerifyUrl">
<iframe
[src]="faceVerifyUrl"
allow="camera"
sandbox="allow-scripts allow-same-origin"
style="width: 100%; height: 540px; border: none"
>
</iframe>
</ng-container>
<div *nzModalFooter class="nz-modal-footer">
<ng-container *ngFor="let action of content.actions">
<button nz-button [nzType]="action.type || 'default'" (click)="action.callback()">
{{ action.text | translate }}
</button>
</ng-container>
</div>
</div>