diff --git a/apps/web/src/app/admin-console/organizations/layouts/organization-layout.component.html b/apps/web/src/app/admin-console/organizations/layouts/organization-layout.component.html index 348c410075..b9a277a2e9 100644 --- a/apps/web/src/app/admin-console/organizations/layouts/organization-layout.component.html +++ b/apps/web/src/app/admin-console/organizations/layouts/organization-layout.component.html @@ -3,7 +3,7 @@ - + ; showPaymentAndHistory$: Observable; + hideNewOrgButton$: Observable; private _destroy = new Subject(); @@ -61,6 +64,7 @@ export class OrganizationLayoutComponent implements OnInit, OnDestroy { private organizationService: OrganizationService, private platformUtilsService: PlatformUtilsService, private configService: ConfigService, + private policyService: PolicyService, ) {} async ngOnInit() { @@ -85,6 +89,8 @@ export class OrganizationLayoutComponent implements OnInit, OnDestroy { org?.canEditPaymentMethods, ), ); + + this.hideNewOrgButton$ = this.policyService.policyAppliesToActiveUser$(PolicyType.SingleOrg); } ngOnDestroy() { diff --git a/apps/web/src/app/layouts/org-switcher/org-switcher.component.ts b/apps/web/src/app/layouts/org-switcher/org-switcher.component.ts index 2c44a045c7..fc77e79a12 100644 --- a/apps/web/src/app/layouts/org-switcher/org-switcher.component.ts +++ b/apps/web/src/app/layouts/org-switcher/org-switcher.component.ts @@ -46,7 +46,6 @@ export class OrgSwitcherComponent { /** * Visibility of the New Organization button - * (Temporary; will be removed when ability to create organizations is added to SM.) */ @Input() hideNewButton = false;