mirror of
https://github.com/bitwarden/browser
synced 2026-02-20 11:24:07 +00:00
[PM-26378] Auto confirm events (#19025)
* add notification handler for auto confirm * add missing state check * fix test * isolate angular specific code from shared lib code * clean up * use autoconfirm method * add event logging for auto confirm * update copy
This commit is contained in:
@@ -44,6 +44,7 @@ const EVENT_SYSTEM_USER_TO_TRANSLATION: Record<EventSystemUser, string> = {
|
||||
[EventSystemUser.SCIM]: null, // SCIM acronym not able to be translated so just display SCIM
|
||||
[EventSystemUser.DomainVerification]: "domainVerification",
|
||||
[EventSystemUser.PublicApi]: "publicApi",
|
||||
[EventSystemUser.BitwardenPortal]: "system",
|
||||
};
|
||||
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||
|
||||
@@ -355,6 +355,13 @@ export class EventService {
|
||||
this.getShortId(ev.organizationUserId),
|
||||
);
|
||||
break;
|
||||
case EventType.OrganizationUser_AutomaticallyConfirmed:
|
||||
msg = this.i18nService.t("automaticallyConfirmedUserId", this.formatOrgUserId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"automaticallyConfirmedUserId",
|
||||
this.getShortId(ev.organizationUserId),
|
||||
);
|
||||
break;
|
||||
// Org
|
||||
case EventType.Organization_Updated:
|
||||
msg = humanReadableMsg = this.i18nService.t("editedOrgSettings");
|
||||
@@ -458,6 +465,18 @@ export class EventService {
|
||||
case EventType.Organization_ItemOrganization_Declined:
|
||||
msg = humanReadableMsg = this.i18nService.t("userDeclinedTransfer");
|
||||
break;
|
||||
case EventType.Organization_AutoConfirmEnabled_Admin:
|
||||
msg = humanReadableMsg = this.i18nService.t("autoConfirmEnabledByAdmin");
|
||||
break;
|
||||
case EventType.Organization_AutoConfirmDisabled_Admin:
|
||||
msg = humanReadableMsg = this.i18nService.t("autoConfirmDisabledByAdmin");
|
||||
break;
|
||||
case EventType.Organization_AutoConfirmEnabled_Portal:
|
||||
msg = humanReadableMsg = this.i18nService.t("autoConfirmEnabledByPortal");
|
||||
break;
|
||||
case EventType.Organization_AutoConfirmDisabled_Portal:
|
||||
msg = humanReadableMsg = this.i18nService.t("autoConfirmDisabledByPortal");
|
||||
break;
|
||||
|
||||
// Policies
|
||||
case EventType.Policy_Updated: {
|
||||
|
||||
@@ -4337,6 +4337,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"automaticallyConfirmedUserId": {
|
||||
"message": "Automatically confirmed user $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "John Smith"
|
||||
}
|
||||
}
|
||||
},
|
||||
"editedUserId": {
|
||||
"message": "Edited user $ID$.",
|
||||
"placeholders": {
|
||||
@@ -6142,6 +6151,21 @@
|
||||
"autoConfirmCheckBoxLabel": {
|
||||
"message": "I accept these risks and policy updates"
|
||||
},
|
||||
"autoConfirmEnabledByAdmin": {
|
||||
"message": "Turned on Automatic user confirmation setting"
|
||||
},
|
||||
"autoConfirmDisabledByAdmin": {
|
||||
"message": "Turned off Automatic user confirmation setting"
|
||||
},
|
||||
"autoConfirmEnabledByPortal": {
|
||||
"message": "Added Automatic user confirmation policy"
|
||||
},
|
||||
"autoConfirmDisabledByPortal": {
|
||||
"message": "Removed Automatic user confirmation policy"
|
||||
},
|
||||
"system": {
|
||||
"message": "System"
|
||||
},
|
||||
"personalOwnership": {
|
||||
"message": "Remove individual vault"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user