Clean code. Fix coinbase tx modal

This commit is contained in:
Gustavo Maximiliano Cortez 2017-01-13 01:05:52 -03:00
commit 9ac1e565ac
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 77 additions and 62 deletions

View file

@ -13,7 +13,7 @@
</ul>
</div>
<div ng-if="!accountId && !error" ng-init="showOauthForm = false">
<div ng-if="!accessToken && !error" ng-init="showOauthForm = false">
<div class="text-center m20v">
<img src="img/coinbase-logo.png" width="200">
</div>
@ -53,20 +53,22 @@
</div>
</div>
<div ng-if="accountId && !error">
<div ng-if="accessToken && !error">
<div class="m20t text-center" ng-show="accountId" ng-click="updateTransactions()">
<div class="m20t text-center" ng-click="updateTransactions()">
<img src="img/coinbase-logo.png" width="200">
</div>
<div class="m10t size-12 text-center text-gray" ng-if="buyPrice && sellPrice">
{{buyPrice.amount}} {{buyPrice.currency}}
|
{{sellPrice.amount}} {{sellPrice.currency}}
<div class="m10t size-12 text-center text-gray">
<span ng-show="!buyPrice || !sellPrice"> ... | ... </span>
<span ng-show="buyPrice && sellPrice">
{{buyPrice.amount}} {{buyPrice.currency}}
|
{{sellPrice.amount}} {{sellPrice.currency}}
</span>
</div>
<div class="list card"
ng-show="accountId">
<div class="list card">
<a class="item item-icon-right"
href ui-sref="tabs.buyandsell.coinbase.amount({nextStep: 'tabs.buyandsell.coinbase.buy', currency: currency})">
<img src="img/buy-bitcoin.svg" alt="buy bitcoin" width="35" class="item-img-buy">

View file

@ -79,18 +79,10 @@
<span ng-show="tx.to && tx.type == 'send'">Receive bitcoin in</span>
<span class="item-note">{{tx.description}}</span>
</li>
<div ng-show="tx.status == 'error'" class="item item-divider"></div>
<div ng-show="tx.status == 'error'" class="item assertive" ng-click="remove()">
Remove transaction
</div>
</ul>
<div class="list" ng-show="tx.status == 'error'">
<div class="item item-divider">
This action will remove the transaction.
</div>
<div class="item">
<a ng-click="remove()">
Remove
</a>
</div>
</div>
</ion-content>
</ion-modal-view>