1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 11:43:51 +00:00

Add changes to disable AddOrganizationButton

This commit is contained in:
Cy Okeke
2025-07-24 17:09:49 +01:00
parent b267b9b885
commit 0b4a62e7be
2 changed files with 3 additions and 0 deletions

View File

@@ -119,6 +119,7 @@
<div *ngIf="dataSource.data.length === 0" class="tw-mt-10">
<app-no-clients
[showAddOrganizationButton]="isProviderAdmin"
[disableAddOrganizationButton]="isSuspensionActive"
(addNewOrganizationClicked)="createClient()"
/>
</div>

View File

@@ -30,6 +30,7 @@ const gearIcon = svgIcon`
<p class="tw-mt-4">{{ "noClients" | i18n }}</p>
<a
*ngIf="showAddOrganizationButton"
[disabled]="disableAddOrganizationButton"
type="button"
bitButton
buttonType="primary"
@@ -43,6 +44,7 @@ const gearIcon = svgIcon`
export class NoClientsComponent {
icon = gearIcon;
@Input() showAddOrganizationButton = true;
@Input() disableAddOrganizationButton = true;
@Output() addNewOrganizationClicked = new EventEmitter();
addNewOrganization = () => this.addNewOrganizationClicked.emit();