isolated scope - wallets filtered from controller

This commit is contained in:
Javier 2016-08-24 19:32:49 -03:00
commit 19419526e4
6 changed files with 55 additions and 67 deletions

View file

@ -42,10 +42,10 @@
<div class="item item-icon-left">
<i class="icon ion-briefcase size-21"></i>
<label translate>From</label>
<span class="badge badge-assertive" ng-show="content.notAvailable" translate>Not available</span>
<span class="badge badge-assertive" ng-show="notAvailable" translate>Not available</span>
</div>
<wallets ng-if="hasWallet" only-complete="true" network="{{network}}" min-balance="{{minBalance}}"></wallets>
<wallets ng-if="wallets[0]" wallets="wallets"></wallets>
<div class="item item-icon-left item-icon-right" ng-click="showDescriptionPopup()">
<span ng-show="!description">Add Description</span>

View file

@ -1,6 +1,6 @@
<div class="wallets" ng-show="content.wallets[0]">
<div class="wallets" ng-show="wallets[0]">
<ion-slides class="slides" slider="data.slider">
<ion-slide-page ng-repeat="wallet in content.wallets track by $index">
<ion-slide-page ng-repeat="wallet in wallets track by $index">
<div class="item item-icon-left">
<i class="icon ion-briefcase size-21" ng-style="{'color':wallet.color}"></i>
{{wallet.name || wallet.id}}

View file

@ -34,7 +34,8 @@
<span ng-show="generatingAddress">...</span>
<span ng-show="!generatingAddress" copy-to-clipboard="addr">{{addr}}</span>
</div>
<wallets ng-if="hasWallet" only-complete="true"></wallets>
<wallets ng-if="wallets[0]" wallets="wallets"></wallets>
</div>
</ion-content>
</ion-view>