mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
* feat(pm-15015) : - Adding `requestCountryName` to auth requests dialogs, and response models. - Updated i18n messages.json in Web, Browser, and Desktop to include "Location" translation.
54 lines
1.5 KiB
HTML
54 lines
1.5 KiB
HTML
<bit-dialog>
|
|
<span bitDialogTitle>{{ "areYouTryingToAccessYourAccount" | i18n }}</span>
|
|
<ng-container bitDialogContent>
|
|
<ng-container *ngIf="loading">
|
|
<div class="tw-flex tw-items-center tw-justify-center" *ngIf="loading">
|
|
<i class="bwi bwi-spinner bwi-spin bwi-3x" aria-hidden="true"></i>
|
|
</div>
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="!loading">
|
|
<h4 class="tw-mb-3">{{ "accessAttemptBy" | i18n: email }}</h4>
|
|
<div>
|
|
<b>{{ "fingerprintPhraseHeader" | i18n }}</b>
|
|
<p class="tw-text-code">{{ fingerprintPhrase }}</p>
|
|
</div>
|
|
<div>
|
|
<b>{{ "deviceType" | i18n }}</b>
|
|
<p>{{ authRequestResponse?.requestDeviceType }}</p>
|
|
</div>
|
|
<div>
|
|
<b>{{ "location" | i18n }}</b>
|
|
<p>
|
|
<span class="tw-capitalize">{{ authRequestResponse?.requestCountryName }} </span>
|
|
({{ authRequestResponse?.requestIpAddress }})
|
|
</p>
|
|
</div>
|
|
<div>
|
|
<b>{{ "time" | i18n }}</b>
|
|
<p>{{ requestTimeText }}</p>
|
|
</div>
|
|
</ng-container>
|
|
</ng-container>
|
|
<ng-container bitDialogFooter>
|
|
<button
|
|
bitButton
|
|
type="button"
|
|
buttonType="primary"
|
|
[bitAction]="approveLogin"
|
|
[disabled]="loading"
|
|
>
|
|
{{ "confirmAccess" | i18n }}
|
|
</button>
|
|
<button
|
|
bitButton
|
|
type="button"
|
|
buttonType="secondary"
|
|
[bitAction]="denyLogin"
|
|
[disabled]="loading"
|
|
>
|
|
{{ "denyAccess" | i18n }}
|
|
</button>
|
|
</ng-container>
|
|
</bit-dialog>
|