1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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": {

View File

@ -49,7 +49,7 @@ export class OrganizationData {
familySponsorshipValidUntil?: Date;
familySponsorshipToDelete?: boolean;
accessSecretsManager: boolean;
limitCollectionCdOwnerAdmin: boolean;
limitCollectionCreationDeletion: boolean;
constructor(
response: ProfileOrganizationResponse,
@ -101,7 +101,7 @@ export class OrganizationData {
this.familySponsorshipValidUntil = response.familySponsorshipValidUntil;
this.familySponsorshipToDelete = response.familySponsorshipToDelete;
this.accessSecretsManager = response.accessSecretsManager;
this.limitCollectionCdOwnerAdmin = response.limitCollectionCdOwnerAdmin;
this.limitCollectionCreationDeletion = response.limitCollectionCreationDeletion;
this.isMember = options.isMember;
this.isProviderUser = options.isProviderUser;

View File

@ -67,7 +67,7 @@ export class Organization {
/**
* Refers to the ability for an organization to limit collection creation and deletion to owners and admins only
*/
limitCollectionCdOwnerAdmin: boolean;
limitCollectionCreationDeletion: boolean;
constructor(obj?: OrganizationData) {
if (obj == null) {
@ -119,7 +119,7 @@ export class Organization {
this.familySponsorshipValidUntil = obj.familySponsorshipValidUntil;
this.familySponsorshipToDelete = obj.familySponsorshipToDelete;
this.accessSecretsManager = obj.accessSecretsManager;
this.limitCollectionCdOwnerAdmin = obj.limitCollectionCdOwnerAdmin;
this.limitCollectionCreationDeletion = obj.limitCollectionCreationDeletion;
}
get canAccess() {

View File

@ -33,7 +33,7 @@ export class OrganizationResponse extends BaseResponse {
smServiceAccounts?: number;
maxAutoscaleSmSeats?: number;
maxAutoscaleSmServiceAccounts?: number;
limitCollectionCdOwnerAdmin: boolean;
limitCollectionCreationDeletion: boolean;
constructor(response: any) {
super(response);
@ -73,6 +73,8 @@ export class OrganizationResponse extends BaseResponse {
this.smServiceAccounts = this.getResponseProperty("SmServiceAccounts");
this.maxAutoscaleSmSeats = this.getResponseProperty("MaxAutoscaleSmSeats");
this.maxAutoscaleSmServiceAccounts = this.getResponseProperty("MaxAutoscaleSmServiceAccounts");
this.limitCollectionCdOwnerAdmin = this.getResponseProperty("LimitCollectionCdOwnerAdmin");
this.limitCollectionCreationDeletion = this.getResponseProperty(
"LimitCollectionCreationDeletion"
);
}
}

View File

@ -48,7 +48,7 @@ export class ProfileOrganizationResponse extends BaseResponse {
familySponsorshipValidUntil?: Date;
familySponsorshipToDelete?: boolean;
accessSecretsManager: boolean;
limitCollectionCdOwnerAdmin: boolean;
limitCollectionCreationDeletion: boolean;
constructor(response: any) {
super(response);
@ -106,6 +106,8 @@ export class ProfileOrganizationResponse extends BaseResponse {
}
this.familySponsorshipToDelete = this.getResponseProperty("FamilySponsorshipToDelete");
this.accessSecretsManager = this.getResponseProperty("AccessSecretsManager");
this.limitCollectionCdOwnerAdmin = this.getResponseProperty("LimitCollectionCdOwnerAdmin");
this.limitCollectionCreationDeletion = this.getResponseProperty(
"LimitCollectionCreationDeletion"
);
}
}