mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
Rename LimitCollectionCdOwnerAdmin -> LimitCollectionCreationDeletion (#6409)
This commit is contained in:
parent
f4ba92b63c
commit
a64ae699ce
@ -60,8 +60,8 @@
|
|||||||
<h1 bitTypography="h1" class="tw-mt-16 tw-pb-2.5">{{ "collectionManagement" | i18n }}</h1>
|
<h1 bitTypography="h1" class="tw-mt-16 tw-pb-2.5">{{ "collectionManagement" | i18n }}</h1>
|
||||||
<p>{{ "collectionManagementDesc" | i18n }}</p>
|
<p>{{ "collectionManagementDesc" | i18n }}</p>
|
||||||
<bit-form-control>
|
<bit-form-control>
|
||||||
<bit-label>{{ "limitCollectionCdOwnerAdminDesc" | i18n }}</bit-label>
|
<bit-label>{{ "limitCollectionCreationDeletionDesc" | i18n }}</bit-label>
|
||||||
<input type="checkbox" bitCheckbox formControlName="limitCollectionCdOwnerAdmin" />
|
<input type="checkbox" bitCheckbox formControlName="limitCollectionCreationDeletion" />
|
||||||
</bit-form-control>
|
</bit-form-control>
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
|
@ -60,7 +60,7 @@ export class AccountComponent {
|
|||||||
});
|
});
|
||||||
|
|
||||||
protected collectionManagementFormGroup = this.formBuilder.group({
|
protected collectionManagementFormGroup = this.formBuilder.group({
|
||||||
limitCollectionCdOwnerAdmin: [false],
|
limitCollectionCreationDeletion: [false],
|
||||||
});
|
});
|
||||||
|
|
||||||
protected organizationId: string;
|
protected organizationId: string;
|
||||||
@ -127,7 +127,7 @@ export class AccountComponent {
|
|||||||
businessName: this.org.businessName,
|
businessName: this.org.businessName,
|
||||||
});
|
});
|
||||||
this.collectionManagementFormGroup.patchValue({
|
this.collectionManagementFormGroup.patchValue({
|
||||||
limitCollectionCdOwnerAdmin: this.org.limitCollectionCdOwnerAdmin,
|
limitCollectionCreationDeletion: this.org.limitCollectionCreationDeletion,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@ -166,7 +166,7 @@ export class AccountComponent {
|
|||||||
submitCollectionManagement = async () => {
|
submitCollectionManagement = async () => {
|
||||||
const request = new OrganizationCollectionManagementUpdateRequest();
|
const request = new OrganizationCollectionManagementUpdateRequest();
|
||||||
request.limitCreateDeleteOwnerAdmin =
|
request.limitCreateDeleteOwnerAdmin =
|
||||||
this.collectionManagementFormGroup.value.limitCollectionCdOwnerAdmin;
|
this.collectionManagementFormGroup.value.limitCollectionCreationDeletion;
|
||||||
|
|
||||||
await this.organizationApiService.updateCollectionManagement(this.organizationId, request);
|
await this.organizationApiService.updateCollectionManagement(this.organizationId, request);
|
||||||
|
|
||||||
|
@ -7132,7 +7132,7 @@
|
|||||||
"collectionManagementDesc": {
|
"collectionManagementDesc": {
|
||||||
"message": "Manage the collection behavior for the organization"
|
"message": "Manage the collection behavior for the organization"
|
||||||
},
|
},
|
||||||
"limitCollectionCdOwnerAdminDesc": {
|
"limitCollectionCreationDeletionDesc": {
|
||||||
"message": "Limit collection creation and deletion to owners and admins"
|
"message": "Limit collection creation and deletion to owners and admins"
|
||||||
},
|
},
|
||||||
"collectionManagementUpdated": {
|
"collectionManagementUpdated": {
|
||||||
|
@ -49,7 +49,7 @@ export class OrganizationData {
|
|||||||
familySponsorshipValidUntil?: Date;
|
familySponsorshipValidUntil?: Date;
|
||||||
familySponsorshipToDelete?: boolean;
|
familySponsorshipToDelete?: boolean;
|
||||||
accessSecretsManager: boolean;
|
accessSecretsManager: boolean;
|
||||||
limitCollectionCdOwnerAdmin: boolean;
|
limitCollectionCreationDeletion: boolean;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
response: ProfileOrganizationResponse,
|
response: ProfileOrganizationResponse,
|
||||||
@ -101,7 +101,7 @@ export class OrganizationData {
|
|||||||
this.familySponsorshipValidUntil = response.familySponsorshipValidUntil;
|
this.familySponsorshipValidUntil = response.familySponsorshipValidUntil;
|
||||||
this.familySponsorshipToDelete = response.familySponsorshipToDelete;
|
this.familySponsorshipToDelete = response.familySponsorshipToDelete;
|
||||||
this.accessSecretsManager = response.accessSecretsManager;
|
this.accessSecretsManager = response.accessSecretsManager;
|
||||||
this.limitCollectionCdOwnerAdmin = response.limitCollectionCdOwnerAdmin;
|
this.limitCollectionCreationDeletion = response.limitCollectionCreationDeletion;
|
||||||
|
|
||||||
this.isMember = options.isMember;
|
this.isMember = options.isMember;
|
||||||
this.isProviderUser = options.isProviderUser;
|
this.isProviderUser = options.isProviderUser;
|
||||||
|
@ -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
|
* 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) {
|
constructor(obj?: OrganizationData) {
|
||||||
if (obj == null) {
|
if (obj == null) {
|
||||||
@ -119,7 +119,7 @@ export class Organization {
|
|||||||
this.familySponsorshipValidUntil = obj.familySponsorshipValidUntil;
|
this.familySponsorshipValidUntil = obj.familySponsorshipValidUntil;
|
||||||
this.familySponsorshipToDelete = obj.familySponsorshipToDelete;
|
this.familySponsorshipToDelete = obj.familySponsorshipToDelete;
|
||||||
this.accessSecretsManager = obj.accessSecretsManager;
|
this.accessSecretsManager = obj.accessSecretsManager;
|
||||||
this.limitCollectionCdOwnerAdmin = obj.limitCollectionCdOwnerAdmin;
|
this.limitCollectionCreationDeletion = obj.limitCollectionCreationDeletion;
|
||||||
}
|
}
|
||||||
|
|
||||||
get canAccess() {
|
get canAccess() {
|
||||||
|
@ -33,7 +33,7 @@ export class OrganizationResponse extends BaseResponse {
|
|||||||
smServiceAccounts?: number;
|
smServiceAccounts?: number;
|
||||||
maxAutoscaleSmSeats?: number;
|
maxAutoscaleSmSeats?: number;
|
||||||
maxAutoscaleSmServiceAccounts?: number;
|
maxAutoscaleSmServiceAccounts?: number;
|
||||||
limitCollectionCdOwnerAdmin: boolean;
|
limitCollectionCreationDeletion: boolean;
|
||||||
|
|
||||||
constructor(response: any) {
|
constructor(response: any) {
|
||||||
super(response);
|
super(response);
|
||||||
@ -73,6 +73,8 @@ export class OrganizationResponse extends BaseResponse {
|
|||||||
this.smServiceAccounts = this.getResponseProperty("SmServiceAccounts");
|
this.smServiceAccounts = this.getResponseProperty("SmServiceAccounts");
|
||||||
this.maxAutoscaleSmSeats = this.getResponseProperty("MaxAutoscaleSmSeats");
|
this.maxAutoscaleSmSeats = this.getResponseProperty("MaxAutoscaleSmSeats");
|
||||||
this.maxAutoscaleSmServiceAccounts = this.getResponseProperty("MaxAutoscaleSmServiceAccounts");
|
this.maxAutoscaleSmServiceAccounts = this.getResponseProperty("MaxAutoscaleSmServiceAccounts");
|
||||||
this.limitCollectionCdOwnerAdmin = this.getResponseProperty("LimitCollectionCdOwnerAdmin");
|
this.limitCollectionCreationDeletion = this.getResponseProperty(
|
||||||
|
"LimitCollectionCreationDeletion"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ export class ProfileOrganizationResponse extends BaseResponse {
|
|||||||
familySponsorshipValidUntil?: Date;
|
familySponsorshipValidUntil?: Date;
|
||||||
familySponsorshipToDelete?: boolean;
|
familySponsorshipToDelete?: boolean;
|
||||||
accessSecretsManager: boolean;
|
accessSecretsManager: boolean;
|
||||||
limitCollectionCdOwnerAdmin: boolean;
|
limitCollectionCreationDeletion: boolean;
|
||||||
|
|
||||||
constructor(response: any) {
|
constructor(response: any) {
|
||||||
super(response);
|
super(response);
|
||||||
@ -106,6 +106,8 @@ export class ProfileOrganizationResponse extends BaseResponse {
|
|||||||
}
|
}
|
||||||
this.familySponsorshipToDelete = this.getResponseProperty("FamilySponsorshipToDelete");
|
this.familySponsorshipToDelete = this.getResponseProperty("FamilySponsorshipToDelete");
|
||||||
this.accessSecretsManager = this.getResponseProperty("AccessSecretsManager");
|
this.accessSecretsManager = this.getResponseProperty("AccessSecretsManager");
|
||||||
this.limitCollectionCdOwnerAdmin = this.getResponseProperty("LimitCollectionCdOwnerAdmin");
|
this.limitCollectionCreationDeletion = this.getResponseProperty(
|
||||||
|
"LimitCollectionCreationDeletion"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user