disable button when click on it

This commit is contained in:
Gustavo Maximiliano Cortez 2015-01-18 18:50:56 -03:00
commit 4f8f6fa122
3 changed files with 6 additions and 21 deletions

View file

@ -81,12 +81,7 @@
</div>
<div class="large-6 medium-6 small-6 columns">
<button class="warning" ng-disabled="loading" ng-click="deleteProfile()">
<span ng-show="!loading">
<i class="fi-trash"></i> Delete
</span>
<span ng-show="loading">
<i class="fi-bitcoin-circle icon-rotate spinner"></i> Deleting...
</span>
<i class="fi-trash"></i> Delete
</button>
</div>
</div>