mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
[AC-2026] Add flexible collections opt-in UI (#7443)
This commit is contained in:
@@ -80,4 +80,5 @@ export class OrganizationApiServiceAbstraction {
|
||||
request: OrganizationCollectionManagementUpdateRequest,
|
||||
) => Promise<OrganizationResponse>;
|
||||
risksSubscriptionFailure: (id: string) => Promise<OrganizationRisksSubscriptionFailureResponse>;
|
||||
enableCollectionEnhancements: (id: string) => Promise<void>;
|
||||
}
|
||||
|
||||
@@ -357,4 +357,15 @@ export class OrganizationApiService implements OrganizationApiServiceAbstraction
|
||||
|
||||
return new OrganizationRisksSubscriptionFailureResponse(r);
|
||||
}
|
||||
|
||||
async enableCollectionEnhancements(id: string): Promise<void> {
|
||||
await this.apiService.send(
|
||||
"POST",
|
||||
"/organizations/" + id + "/enable-collection-enhancements",
|
||||
null,
|
||||
true,
|
||||
false,
|
||||
);
|
||||
await this.syncService.fullSync(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user