1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-02 08:40:08 +01:00

convert to button with disabled state

This commit is contained in:
Kyle Spearrin 2018-04-11 13:51:29 -04:00
parent 44651ea9f3
commit bc41d3b57a

View File

@ -13,11 +13,12 @@
</div> </div>
<small class="row-sub-label">{{a.sizeName}}</small> <small class="row-sub-label">{{a.sizeName}}</small>
<div class="action-buttons no-pad"> <div class="action-buttons no-pad">
<a class="row-btn" href="#" appStopClick appBlurClick title="{{'delete' | i18n}}" <button class="row-btn btn" type="button" appStopClick appBlurClick
(click)="delete(a)" #deleteBtn [appApiAction]="deletePromises[a.id]"> title="{{'delete' | i18n}}" (click)="delete(a)" #deleteBtn
[appApiAction]="deletePromises[a.id]" [disabled]="deleteBtn.loading">
<i class="fa fa-trash-o fa-lg fa-fw" [hidden]="deleteBtn.loading"></i> <i class="fa fa-trash-o fa-lg fa-fw" [hidden]="deleteBtn.loading"></i>
<i class="fa fa-spinner fa-spin fa-lg fa-fw" [hidden]="!deleteBtn.loading"></i> <i class="fa fa-spinner fa-spin fa-lg fa-fw" [hidden]="!deleteBtn.loading"></i>
</a> </button>
</div> </div>
</div> </div>
</div> </div>