1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

[PM-15015] Adding Request Country Name to auth requests approval dialog (#13718)

* 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.
This commit is contained in:
Ike
2025-03-07 18:03:13 -05:00
committed by GitHub
parent f1b69ad65d
commit c739a884b4
8 changed files with 21 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ export class PendingAuthRequestView implements View {
requestDeviceIdentifier: string;
requestDeviceType: string;
requestIpAddress: string;
requestCountryName: string;
creationDate: Date;
static fromResponse(response: PendingOrganizationAuthRequestResponse): PendingAuthRequestView {

View File

@@ -9,6 +9,7 @@ export class PendingOrganizationAuthRequestResponse extends BaseResponse {
requestDeviceIdentifier: string;
requestDeviceType: string;
requestIpAddress: string;
requestCountryName: string;
creationDate: string;
constructor(response: any) {
@@ -21,6 +22,7 @@ export class PendingOrganizationAuthRequestResponse extends BaseResponse {
this.requestDeviceIdentifier = this.getResponseProperty("RequestDeviceIdentifier");
this.requestDeviceType = this.getResponseProperty("RequestDeviceType");
this.requestIpAddress = this.getResponseProperty("RequestIpAddress");
this.requestCountryName = this.getResponseProperty("RequestCountryName");
this.creationDate = this.getResponseProperty("CreationDate");
}
}