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"
|
[placeholder]="'searchMembers' | i18n"
|
||||||
></bit-search>
|
></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>
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
{{ "inviteMember" | i18n }}
|
{{ "inviteMember" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue