mirror of
https://github.com/bitwarden/browser
synced 2026-02-11 14:04:03 +00:00
Rename LimitCollectionCdOwnerAdmin -> LimitCollectionCreationDeletion (#6409)
This commit is contained in:
@@ -60,8 +60,8 @@
|
||||
<h1 bitTypography="h1" class="tw-mt-16 tw-pb-2.5">{{ "collectionManagement" | i18n }}</h1>
|
||||
<p>{{ "collectionManagementDesc" | i18n }}</p>
|
||||
<bit-form-control>
|
||||
<bit-label>{{ "limitCollectionCdOwnerAdminDesc" | i18n }}</bit-label>
|
||||
<input type="checkbox" bitCheckbox formControlName="limitCollectionCdOwnerAdmin" />
|
||||
<bit-label>{{ "limitCollectionCreationDeletionDesc" | i18n }}</bit-label>
|
||||
<input type="checkbox" bitCheckbox formControlName="limitCollectionCreationDeletion" />
|
||||
</bit-form-control>
|
||||
<button
|
||||
type="submit"
|
||||
|
||||
@@ -60,7 +60,7 @@ export class AccountComponent {
|
||||
});
|
||||
|
||||
protected collectionManagementFormGroup = this.formBuilder.group({
|
||||
limitCollectionCdOwnerAdmin: [false],
|
||||
limitCollectionCreationDeletion: [false],
|
||||
});
|
||||
|
||||
protected organizationId: string;
|
||||
@@ -127,7 +127,7 @@ export class AccountComponent {
|
||||
businessName: this.org.businessName,
|
||||
});
|
||||
this.collectionManagementFormGroup.patchValue({
|
||||
limitCollectionCdOwnerAdmin: this.org.limitCollectionCdOwnerAdmin,
|
||||
limitCollectionCreationDeletion: this.org.limitCollectionCreationDeletion,
|
||||
});
|
||||
|
||||
this.loading = false;
|
||||
@@ -166,7 +166,7 @@ export class AccountComponent {
|
||||
submitCollectionManagement = async () => {
|
||||
const request = new OrganizationCollectionManagementUpdateRequest();
|
||||
request.limitCreateDeleteOwnerAdmin =
|
||||
this.collectionManagementFormGroup.value.limitCollectionCdOwnerAdmin;
|
||||
this.collectionManagementFormGroup.value.limitCollectionCreationDeletion;
|
||||
|
||||
await this.organizationApiService.updateCollectionManagement(this.organizationId, request);
|
||||
|
||||
|
||||
@@ -7132,7 +7132,7 @@
|
||||
"collectionManagementDesc": {
|
||||
"message": "Manage the collection behavior for the organization"
|
||||
},
|
||||
"limitCollectionCdOwnerAdminDesc": {
|
||||
"limitCollectionCreationDeletionDesc": {
|
||||
"message": "Limit collection creation and deletion to owners and admins"
|
||||
},
|
||||
"collectionManagementUpdated": {
|
||||
|
||||
Reference in New Issue
Block a user