Skip to content

Commit

Permalink
[PM-18663] Fix calls to bit-button loading states (#13592)
Browse files Browse the repository at this point in the history
  • Loading branch information
vleague2 authored Feb 27, 2025
1 parent e6aaa65 commit 1da7f20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ <h2 class="tw-font-bold">{{ "premiumFeatures" | i18n }}</h2>
#refreshBtn
type="button"
(click)="refresh()"
[disabled]="$any(refreshBtn).loading"
[disabled]="$any(refreshBtn).loading()"
[appApiAction]="refreshPromise"
bitButton
>
<span [hidden]="$any(refreshBtn).loading">{{ "premiumRefresh" | i18n }}</span>
<span [hidden]="$any(refreshBtn).loading()">{{ "premiumRefresh" | i18n }}</span>
<i
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw"
[hidden]="!$any(refreshBtn).loading"
[hidden]="!$any(refreshBtn).loading()"
aria-hidden="true"
></i>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#reinstateBtn
(click)="reinstate()"
[appApiAction]="reinstatePromise"
[disabled]="$any(reinstateBtn).loading"
[disabled]="$any(reinstateBtn).loading()"
>
{{ "reinstateSubscription" | i18n }}
</button>
Expand Down Expand Up @@ -109,7 +109,7 @@
class="tw-ml-auto"
(click)="cancelSubscription()"
[appApiAction]="cancelPromise"
[disabled]="$any(cancelBtn).loading"
[disabled]="$any(cancelBtn).loading()"
*ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel"
>
{{ "cancelSubscription" | i18n }}
Expand Down

0 comments on commit 1da7f20

Please sign in to comment.