make wallet selector a standalone directive
This commit is contained in:
parent
d726b39b47
commit
ec3fca4cda
8 changed files with 132 additions and 102 deletions
|
|
@ -79,38 +79,15 @@
|
|||
<span ng-hide="wallet.m > 1">Payment Sent</span>
|
||||
<span ng-show="wallet.m > 1">Proposal Created</span>
|
||||
</slide-to-accept-success>
|
||||
<action-sheet action-sheet-show="showWallets" class="wallet-selector">
|
||||
<!-- <div ng-repeat="wallet in wallets">{{wallet.name}}</div> -->
|
||||
<a
|
||||
ng-repeat="w in wallets track by $index"
|
||||
class="item item-icon-left item-big-icon-left item-icon-right wallet"
|
||||
ng-click="selectWallet(w)"
|
||||
>
|
||||
<i class="icon big-icon-svg">
|
||||
<img src="img/icon-wallet.svg" ng-style="{'background-color': w.color}" class="bg">
|
||||
</i>
|
||||
<div class="wallet-inner">
|
||||
<div class="wallet-details">
|
||||
<div class="wallet-name">
|
||||
{{w.name}}
|
||||
</div>
|
||||
<p class="wallet-balance">
|
||||
<span ng-if="!w.isComplete()" class="assertive" translate>
|
||||
Incomplete
|
||||
</span>
|
||||
<span ng-if="w.isComplete()">
|
||||
<span ng-if="!w.balanceHidden">{{w.status.availableBalanceStr}}</span>
|
||||
<span ng-if="w.balanceHidden" translate>[Balance Hidden]</span>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<img class="check" src="img/icon-check-selected.svg" ng-show="wallet === w">
|
||||
</div>
|
||||
<!-- <i class="icon bp-arrow-right"></i> -->
|
||||
</a>
|
||||
</action-sheet>
|
||||
|
||||
<wallet-selector
|
||||
wallet-selector-wallets="wallets"
|
||||
wallet-selector-selected-wallet="wallet"
|
||||
wallet-selector-show="showWallets"
|
||||
wallet-selector-on-select="onWalletSelect"
|
||||
>
|
||||
</wallet-selector>
|
||||
|
||||
</ion-view>
|
||||
<!-- <ion-view id="view-confirm">
|
||||
<ion-nav-bar class="bar-royal">
|
||||
|
|
|
|||
30
www/views/includes/walletSelector.html
Normal file
30
www/views/includes/walletSelector.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<action-sheet action-sheet-show="show" class="wallet-selector">
|
||||
<a
|
||||
ng-repeat="w in wallets track by $index"
|
||||
class="item item-icon-left item-big-icon-left item-icon-right wallet"
|
||||
ng-click="selectWallet(w)"
|
||||
>
|
||||
<i class="icon big-icon-svg">
|
||||
<img src="img/icon-wallet.svg" ng-style="{'background-color': w.color}" class="bg">
|
||||
</i>
|
||||
<div class="wallet-inner">
|
||||
<div class="wallet-details">
|
||||
<div class="wallet-name">
|
||||
{{w.name}}
|
||||
</div>
|
||||
<p class="wallet-balance">
|
||||
<span ng-if="!w.isComplete()" class="assertive" translate>
|
||||
Incomplete
|
||||
</span>
|
||||
<span ng-if="w.isComplete()">
|
||||
<span ng-if="!w.balanceHidden">{{w.status.availableBalanceStr}}</span>
|
||||
<span ng-if="w.balanceHidden" translate>[Balance Hidden]</span>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<img class="check" src="img/icon-check-selected.svg" ng-show="selectedWallet === w">
|
||||
</div>
|
||||
</a>
|
||||
</action-sheet>
|
||||
Loading…
Add table
Add a link
Reference in a new issue