mirror of
https://github.com/bitwarden/browser
synced 2026-02-25 00:53:22 +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: {
|
||||
|
||||
Reference in New Issue
Block a user