diff --git a/bitwarden_license/src/app/providers/clients/add-organization.component.ts b/bitwarden_license/src/app/providers/clients/add-organization.component.ts index 4b7cca607f..099d4d04f7 100644 --- a/bitwarden_license/src/app/providers/clients/add-organization.component.ts +++ b/bitwarden_license/src/app/providers/clients/add-organization.component.ts @@ -21,8 +21,6 @@ import { Provider } from 'jslib-common/models/domain/provider'; import { PlanType } from 'jslib-common/enums/planType'; -const DisallowedPlanTypes = [PlanType.Free, PlanType.FamiliesAnnually2019, PlanType.FamiliesAnnually]; - @Component({ selector: 'provider-add-organization', templateUrl: 'add-organization.component.html', @@ -30,12 +28,12 @@ const DisallowedPlanTypes = [PlanType.Free, PlanType.FamiliesAnnually2019, PlanT export class AddOrganizationComponent implements OnInit { @Input() providerId: string; + @Input() organizations: Organization[]; @Output() onAddedOrganization = new EventEmitter(); provider: Provider; formPromise: Promise; loading = true; - organizations: Organization[]; constructor(private userService: UserService, private providerService: ProviderService, private toasterService: ToasterService, private i18nService: I18nService, @@ -53,12 +51,6 @@ export class AddOrganizationComponent implements OnInit { this.provider = await this.userService.getProvider(this.providerId); - const candidateOrgs = (await this.userService.getAllOrganizations()).filter(o => o.providerId == null); - const allowedOrgsIds = await Promise.all(candidateOrgs.map(o => this.apiService.getOrganization(o.id))).then(orgs => - orgs.filter(o => !DisallowedPlanTypes.includes(o.planType)) - .map(o => o.id)); - this.organizations = candidateOrgs.filter(o => allowedOrgsIds.includes(o.id)); - this.loading = false; } diff --git a/bitwarden_license/src/app/providers/clients/clients.component.html b/bitwarden_license/src/app/providers/clients/clients.component.html index 9be5aeabcb..7ae60d6782 100644 --- a/bitwarden_license/src/app/providers/clients/clients.component.html +++ b/bitwarden_license/src/app/providers/clients/clients.component.html @@ -38,7 +38,7 @@ {{o.organizationName}} - +
diff --git a/src/app/settings/organization-plans.component.ts b/src/app/settings/organization-plans.component.ts index 7ada4c02b9..3da59ae859 100644 --- a/src/app/settings/organization-plans.component.ts +++ b/src/app/settings/organization-plans.component.ts @@ -90,6 +90,7 @@ export class OrganizationPlansComponent implements OnInit { if (this.providerId) { this.ownedBusiness = true; + this.changedOwnedBusiness(); } this.loading = false; diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index f838af601f..925bd97796 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -2251,7 +2251,7 @@ "message": "The highest access user that can manage all aspects of your organization." }, "clientOwnerDesc": { - "message": "This email should NOT be associated with the provider. This user will have permissions to access and manage all aspects of this organization." + "message": "This user should be independent of the Provider. If the Provider is disassociated with the organization, this user will maintain ownership of the organization." }, "admin": { "message": "Admin"