mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-06 18:57:56 +01:00
Adds Events & Human Readable Messages (#5746)
This commit is contained in:
parent
887b2ec78e
commit
e6cb56f902
@ -80,6 +80,10 @@ export class EventService {
|
||||
case EventType.User_MigratedKeyToKeyConnector:
|
||||
msg = humanReadableMsg = this.i18nService.t("migratedKeyConnector");
|
||||
break;
|
||||
case EventType.User_RequestedDeviceApproval:
|
||||
msg = this.i18nService.t("requestedDeviceApproval");
|
||||
humanReadableMsg = this.i18nService.t("requestedDeviceApproval");
|
||||
break;
|
||||
// Cipher
|
||||
case EventType.Cipher_Created:
|
||||
msg = this.i18nService.t("createdItemId", this.formatCipherId(ev, options));
|
||||
@ -307,6 +311,20 @@ export class EventService {
|
||||
this.getShortId(ev.organizationUserId)
|
||||
);
|
||||
break;
|
||||
case EventType.OrganizationUser_ApprovedAuthRequest:
|
||||
msg = this.i18nService.t("approvedAuthRequest", this.formatOrgUserId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"approvedAuthRequest",
|
||||
this.getShortId(ev.organizationUserId)
|
||||
);
|
||||
break;
|
||||
case EventType.OrganizationUser_RejectedAuthRequest:
|
||||
msg = this.i18nService.t("rejectedAuthRequest", this.formatOrgUserId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"rejectedAuthRequest",
|
||||
this.getShortId(ev.organizationUserId)
|
||||
);
|
||||
break;
|
||||
// Org
|
||||
case EventType.Organization_Updated:
|
||||
msg = humanReadableMsg = this.i18nService.t("editedOrgSettings");
|
||||
|
@ -6840,7 +6840,7 @@
|
||||
"message": "Request admin approval"
|
||||
},
|
||||
"approveWithMasterPassword": {
|
||||
"message": "Approve with master password"
|
||||
"message": "Approve with master password"
|
||||
},
|
||||
"trustedDeviceEncryption": {
|
||||
"message": "Trusted device encryption"
|
||||
@ -6929,5 +6929,26 @@
|
||||
},
|
||||
"removeMembersWithoutMasterPasswordWarning": {
|
||||
"message": "Removing members who do not have master passwords without setting one for them may restrict access to their full account."
|
||||
},
|
||||
"approvedAuthRequest": {
|
||||
"message": "Approved device for $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "First 8 Character of a GUID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"rejectedAuthRequest": {
|
||||
"message": "Denied device for $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "First 8 Character of a GUID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"requestedDeviceApproval": {
|
||||
"message": "Requested device approval."
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ export enum EventType {
|
||||
User_ClientExportedVault = 1007,
|
||||
User_UpdatedTempPassword = 1008,
|
||||
User_MigratedKeyToKeyConnector = 1009,
|
||||
User_RequestedDeviceApproval = 1010,
|
||||
|
||||
Cipher_Created = 1100,
|
||||
Cipher_Updated = 1101,
|
||||
@ -51,6 +52,8 @@ export enum EventType {
|
||||
OrganizationUser_FirstSsoLogin = 1510,
|
||||
OrganizationUser_Revoked = 1511,
|
||||
OrganizationUser_Restored = 1512,
|
||||
OrganizationUser_ApprovedAuthRequest = 1513,
|
||||
OrganizationUser_RejectedAuthRequest = 1514,
|
||||
|
||||
Organization_Updated = 1600,
|
||||
Organization_PurgedVault = 1601,
|
||||
|
Loading…
Reference in New Issue
Block a user