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:
@@ -119,6 +119,7 @@
|
||||
<div *ngIf="dataSource.data.length === 0" class="tw-mt-10">
|
||||
<app-no-clients
|
||||
[showAddOrganizationButton]="isProviderAdmin"
|
||||
[disableAddOrganizationButton]="isSuspensionActive"
|
||||
(addNewOrganizationClicked)="createClient()"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user