-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathacl-dialog.component.html
More file actions
76 lines (70 loc) · 2.41 KB
/
Copy pathacl-dialog.component.html
File metadata and controls
76 lines (70 loc) · 2.41 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<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-container *ngIf="content.customContent?.type === 'otp_code'">
<div class="otp-code-box">
<input
#otpCodeInput
[(ngModel)]="otpCode"
(ngModelChange)="onOTPCodeInput()"
[placeholder]="'OTP Code' | translate"
autocomplete="one-time-code"
inputmode="numeric"
maxlength="16"
nz-input
/>
<div *ngIf="otpCodeError" class="otp-code-error">{{ otpCodeError }}</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
[nzLoading]="code === 'otp_code_verify' && action.type === 'primary' && otpCodeSubmitting"
[nzType]="action.type || 'default'"
(click)="action.callback()"
>
{{ action.text | translate }}
</button>
</ng-container>
</div>
</div>