1
0
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:
Thomas Rittson
2023-09-27 07:37:39 +10:00
committed by GitHub
parent f4ba92b63c
commit a64ae699ce
7 changed files with 18 additions and 14 deletions

View File

@@ -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"

View File

@@ -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);

View File

@@ -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": {