2022-09-01 09:44:39 +02:00
|
|
|
<span class="title" mat-dialog-title>{{ 'ORG.PAGES.ORGDOMAIN.TITLE' | translate }} {{ domain?.domainName }}</span>
|
2022-04-28 12:35:02 +02:00
|
|
|
<div mat-dialog-content>
|
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION' | translate }}</p>
|
|
|
|
|
2022-06-07 11:08:05 +02:00
|
|
|
<cnsl-info-section [type]="InfoSectionType.WARN" class="desc">{{
|
|
|
|
'ORG.PAGES.ORGDOMAIN.VERIFICATION_VALIDATION_DESC' | translate
|
|
|
|
}}</cnsl-info-section>
|
2022-04-28 12:35:02 +02:00
|
|
|
|
2022-06-07 11:08:05 +02:00
|
|
|
<p
|
2022-09-01 09:44:39 +02:00
|
|
|
*ngIf="domain?.validationType !== DomainValidationType.DOMAIN_VALIDATION_TYPE_UNSPECIFIED && !(dns || http)"
|
2022-06-07 11:08:05 +02:00
|
|
|
class="desc"
|
|
|
|
>
|
2023-09-28 14:59:58 +02:00
|
|
|
{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_VALIDATION_ONGOING' | translate: domain }}
|
2022-06-07 11:08:05 +02:00
|
|
|
{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_VALIDATION_ONGOING_TYPE' | translate }}
|
2022-09-01 09:44:39 +02:00
|
|
|
{{ 'ORG.PAGES.ORGDOMAIN.TYPES.' + domain?.validationType | translate }}
|
2022-06-07 11:08:05 +02:00
|
|
|
</p>
|
2022-04-28 12:35:02 +02:00
|
|
|
|
|
|
|
<div class="btn-container">
|
2022-06-07 11:08:05 +02:00
|
|
|
<button
|
2022-09-01 09:44:39 +02:00
|
|
|
[disabled]="domain?.validationType === DomainValidationType.DOMAIN_VALIDATION_TYPE_UNSPECIFIED"
|
2022-06-07 11:08:05 +02:00
|
|
|
color="primary"
|
|
|
|
type="submit"
|
|
|
|
mat-raised-button
|
|
|
|
*ngIf="!(dns || http)"
|
|
|
|
(click)="validate()"
|
|
|
|
>
|
2022-04-28 12:35:02 +02:00
|
|
|
{{ 'ACTIONS.VERIFY' | translate }}
|
|
|
|
</button>
|
|
|
|
<mat-spinner class="spinner" *ngIf="validating" diameter="20" mode="indeterminate"></mat-spinner>
|
|
|
|
|
2022-06-07 11:08:05 +02:00
|
|
|
<button *ngIf="!showNew" mat-stroked-button color="primary" (click)="showNew = true">
|
|
|
|
{{ 'ORG.PAGES.ORGDOMAIN.REQUESTNEWTOKEN' | translate }}
|
|
|
|
</button>
|
2022-04-28 12:35:02 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<ng-container *ngIf="showNew">
|
|
|
|
<p>{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_NEWTOKEN_TITLE' | translate }}</p>
|
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_NEWTOKEN_DESC' | translate }}</p>
|
|
|
|
|
|
|
|
<div class="btn-container" *ngIf="!(http || dns)">
|
|
|
|
<button color="primary" mat-raised-button (click)="loadHttpToken()">HTTP</button>
|
|
|
|
<button color="primary" mat-raised-button (click)="loadDnsToken()">DNS</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div *ngIf="http">
|
|
|
|
<p>HTTP TOKEN</p>
|
2023-07-07 13:50:45 +02:00
|
|
|
<p class="entry">{{ http.url }}</p>
|
2022-04-28 12:35:02 +02:00
|
|
|
|
|
|
|
<div class="btn-container">
|
2022-06-07 11:08:05 +02:00
|
|
|
<button mat-stroked-button (click)="saveFile()" color="primary">{{ 'ORG.PAGES.DOWNLOAD_FILE' | translate }}</button>
|
2022-04-28 12:35:02 +02:00
|
|
|
<button color="primary" class="verify-button" type="submit" mat-raised-button (click)="validate()">
|
|
|
|
<span>{{ 'ACTIONS.VERIFY' | translate }}</span>
|
|
|
|
</button>
|
|
|
|
<mat-spinner class="spinner" *ngIf="validating" diameter="20" mode="indeterminate"></mat-spinner>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div *ngIf="dns">
|
|
|
|
<p>DNS TOKEN</p>
|
2022-09-01 09:44:39 +02:00
|
|
|
<div class="domain-line" *ngIf="dns.token">
|
|
|
|
<p class="entry">{{ dns.token }}</p>
|
2022-06-07 11:08:05 +02:00
|
|
|
<button
|
|
|
|
color="primary"
|
|
|
|
[disabled]="copied === data.clientSecret"
|
|
|
|
matTooltip="copy to clipboard"
|
|
|
|
cnslCopyToClipboard
|
|
|
|
[valueToCopy]="dns.token"
|
|
|
|
(copiedValue)="copied = $event"
|
|
|
|
mat-icon-button
|
|
|
|
>
|
2022-04-28 12:35:02 +02:00
|
|
|
<i *ngIf="copied !== dns.token" class="las la-clipboard"></i>
|
|
|
|
<i *ngIf="copied === dns.token" class="las la-clipboard-check"></i>
|
|
|
|
</button>
|
|
|
|
<button color="primary" type="submit" mat-raised-button class="verify-button" (click)="validate()">
|
|
|
|
{{ 'ACTIONS.VERIFY' | translate }}
|
|
|
|
</button>
|
|
|
|
<mat-spinner class="spinner" *ngIf="validating" diameter="20" mode="indeterminate"></mat-spinner>
|
|
|
|
</div>
|
2022-09-01 09:44:39 +02:00
|
|
|
<p class="entry">{{ dns.url }}</p>
|
2022-04-28 12:35:02 +02:00
|
|
|
</div>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
<div mat-dialog-actions class="action">
|
2022-06-07 11:08:05 +02:00
|
|
|
<button mat-stroked-button (click)="closeDialog()">
|
|
|
|
{{ 'ACTIONS.CLOSE' | translate }}
|
2022-04-28 12:35:02 +02:00
|
|
|
</button>
|
2022-06-07 11:08:05 +02:00
|
|
|
</div>
|