mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-21 11:35:34 +01:00
Disable a button during page load (#10148)
The people screen has a button that can be clicked to open a modal for inviting new users to an organization. This modal depends on data from the people list for conditional logic, like whether or not the seat count cor the organization has been reached. If the modal is opened before the people list loads these conditions can not process correctly, causing bugs. This commit disabled the button until the people list loads to prevent this kind of behavior.
This commit is contained in:
parent
3706eb995a
commit
9b50e5c496
@ -5,7 +5,7 @@
|
||||
[placeholder]="'searchMembers' | i18n"
|
||||
></bit-search>
|
||||
|
||||
<button type="button" bitButton buttonType="primary" (click)="invite()">
|
||||
<button type="button" bitButton buttonType="primary" (click)="invite()" [disabled]="!firstLoaded">
|
||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||
{{ "inviteMember" | i18n }}
|
||||
</button>
|
||||
|
Loading…
Reference in New Issue
Block a user