mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[PM-21752] Add granular events for collection management settings (#16253)
* Add new event types for granular collection management settings * Update collection management settings messages * Refine collection management setting messages to remove "deletion"
This commit is contained in:
@@ -390,6 +390,68 @@ export class EventService {
|
||||
this.getShortId(ev.organizationId),
|
||||
);
|
||||
break;
|
||||
case EventType.Organization_CollectionManagement_LimitCollectionCreationEnabled:
|
||||
msg = this.i18nService.t("limitCollectionCreationEnabled", this.formatOrganizationId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"limitCollectionCreationEnabled",
|
||||
this.getShortId(ev.organizationId),
|
||||
);
|
||||
break;
|
||||
case EventType.Organization_CollectionManagement_LimitCollectionCreationDisabled:
|
||||
msg = this.i18nService.t("limitCollectionCreationDisabled", this.formatOrganizationId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"limitCollectionCreationDisabled",
|
||||
this.getShortId(ev.organizationId),
|
||||
);
|
||||
break;
|
||||
case EventType.Organization_CollectionManagement_LimitCollectionDeletionEnabled:
|
||||
msg = this.i18nService.t("limitCollectionDeletionEnabled", this.formatOrganizationId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"limitCollectionDeletionEnabled",
|
||||
this.getShortId(ev.organizationId),
|
||||
);
|
||||
break;
|
||||
case EventType.Organization_CollectionManagement_LimitCollectionDeletionDisabled:
|
||||
msg = this.i18nService.t("limitCollectionDeletionDisabled", this.formatOrganizationId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"limitCollectionDeletionDisabled",
|
||||
this.getShortId(ev.organizationId),
|
||||
);
|
||||
break;
|
||||
case EventType.Organization_CollectionManagement_LimitItemDeletionEnabled:
|
||||
msg = this.i18nService.t("limitItemDeletionEnabled", this.formatOrganizationId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"limitItemDeletionEnabled",
|
||||
this.getShortId(ev.organizationId),
|
||||
);
|
||||
break;
|
||||
case EventType.Organization_CollectionManagement_LimitItemDeletionDisabled:
|
||||
msg = this.i18nService.t("limitItemDeletionDisabled", this.formatOrganizationId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"limitItemDeletionDisabled",
|
||||
this.getShortId(ev.organizationId),
|
||||
);
|
||||
break;
|
||||
case EventType.Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsEnabled:
|
||||
msg = this.i18nService.t(
|
||||
"allowAdminAccessToAllCollectionItemsEnabled",
|
||||
this.formatOrganizationId(ev),
|
||||
);
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"allowAdminAccessToAllCollectionItemsEnabled",
|
||||
this.getShortId(ev.organizationId),
|
||||
);
|
||||
break;
|
||||
case EventType.Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsDisabled:
|
||||
msg = this.i18nService.t(
|
||||
"allowAdminAccessToAllCollectionItemsDisabled",
|
||||
this.formatOrganizationId(ev),
|
||||
);
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"allowAdminAccessToAllCollectionItemsDisabled",
|
||||
this.getShortId(ev.organizationId),
|
||||
);
|
||||
break;
|
||||
|
||||
// Policies
|
||||
case EventType.Policy_Updated: {
|
||||
|
||||
@@ -9035,6 +9035,78 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"limitCollectionCreationEnabled": {
|
||||
"message": "Turned on Restrict collection creation setting $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "Unique ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"limitCollectionCreationDisabled": {
|
||||
"message": "Turned off Restrict collection creation setting $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "Unique ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"limitCollectionDeletionEnabled": {
|
||||
"message": "Turned on Restrict collection deletion setting $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "Unique ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"limitCollectionDeletionDisabled": {
|
||||
"message": "Turned off Restrict collection deletion setting $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "Unique ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"limitItemDeletionEnabled": {
|
||||
"message": "Turned on Restrict item deletion setting $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "Unique ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"limitItemDeletionDisabled": {
|
||||
"message": "Turned off Restrict item deletion setting $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "Unique ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"allowAdminAccessToAllCollectionItemsEnabled": {
|
||||
"message": "Turned on Allow owners and admins to manage all collections and items setting $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "Unique ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"allowAdminAccessToAllCollectionItemsDisabled": {
|
||||
"message": "Turned off Allow owners and admins to manage all collections and items setting $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "Unique ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"seeDetailedInstructions": {
|
||||
"message": "See detailed instructions on our help site at",
|
||||
"description": "This is followed a by a hyperlink to the help website."
|
||||
|
||||
@@ -71,6 +71,14 @@ export enum EventType {
|
||||
Organization_DisabledKeyConnector = 1607,
|
||||
Organization_SponsorshipsSynced = 1608,
|
||||
Organization_CollectionManagementUpdated = 1609,
|
||||
Organization_CollectionManagement_LimitCollectionCreationEnabled = 1610,
|
||||
Organization_CollectionManagement_LimitCollectionCreationDisabled = 1611,
|
||||
Organization_CollectionManagement_LimitCollectionDeletionEnabled = 1612,
|
||||
Organization_CollectionManagement_LimitCollectionDeletionDisabled = 1613,
|
||||
Organization_CollectionManagement_LimitItemDeletionEnabled = 1614,
|
||||
Organization_CollectionManagement_LimitItemDeletionDisabled = 1615,
|
||||
Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsEnabled = 1616,
|
||||
Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsDisabled = 1617,
|
||||
|
||||
Policy_Updated = 1700,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user