mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-28 03:21:40 +01:00
[PM-18663] Fix calls to bit-button loading states (#13592)
This commit is contained in:
parent
e6aaa65563
commit
1da7f2052c
@ -45,14 +45,14 @@
|
|||||||
#refreshBtn
|
#refreshBtn
|
||||||
type="button"
|
type="button"
|
||||||
(click)="refresh()"
|
(click)="refresh()"
|
||||||
[disabled]="$any(refreshBtn).loading"
|
[disabled]="$any(refreshBtn).loading()"
|
||||||
[appApiAction]="refreshPromise"
|
[appApiAction]="refreshPromise"
|
||||||
bitButton
|
bitButton
|
||||||
>
|
>
|
||||||
<span [hidden]="$any(refreshBtn).loading">{{ "premiumRefresh" | i18n }}</span>
|
<span [hidden]="$any(refreshBtn).loading()">{{ "premiumRefresh" | i18n }}</span>
|
||||||
<i
|
<i
|
||||||
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw"
|
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw"
|
||||||
[hidden]="!$any(refreshBtn).loading"
|
[hidden]="!$any(refreshBtn).loading()"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i>
|
></i>
|
||||||
</button>
|
</button>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#reinstateBtn
|
#reinstateBtn
|
||||||
(click)="reinstate()"
|
(click)="reinstate()"
|
||||||
[appApiAction]="reinstatePromise"
|
[appApiAction]="reinstatePromise"
|
||||||
[disabled]="$any(reinstateBtn).loading"
|
[disabled]="$any(reinstateBtn).loading()"
|
||||||
>
|
>
|
||||||
{{ "reinstateSubscription" | i18n }}
|
{{ "reinstateSubscription" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
@ -109,7 +109,7 @@
|
|||||||
class="tw-ml-auto"
|
class="tw-ml-auto"
|
||||||
(click)="cancelSubscription()"
|
(click)="cancelSubscription()"
|
||||||
[appApiAction]="cancelPromise"
|
[appApiAction]="cancelPromise"
|
||||||
[disabled]="$any(cancelBtn).loading"
|
[disabled]="$any(cancelBtn).loading()"
|
||||||
*ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel"
|
*ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel"
|
||||||
>
|
>
|
||||||
{{ "cancelSubscription" | i18n }}
|
{{ "cancelSubscription" | i18n }}
|
||||||
|
Loading…
Reference in New Issue
Block a user