Show balance of addresses. Remove filter noFractionNumber.

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-30 17:34:14 -03:00 committed by Matias Alejo Garcia
parent 01b678457d
commit cd33523b3f
3 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,7 @@ angular.module('copayApp.controllers').controller('ReceiveController',
$scope.setAddressList = function() {
var w = $rootScope.wallet;
var balance = $rootScope.balanceByAddr;
var balance = w.balanceInfo.balanceByAddr;
var addresses = w.getAddressesOrderer();
if (addresses) {
@ -58,7 +58,7 @@ angular.module('copayApp.controllers').controller('ReceiveController',
list.push({
'index': index,
'address': address,
'balance': balance ? balance[address] : 0,
'balance': balance ? balance[address] : null,
'isChange': w.addressIsChange(address),
});
});

View File

@ -2,7 +2,7 @@
'use strict';
angular.module('copayApp.services')
.factory('pendingTxsService', function($rootScope, $sce, $location, $filter, notification, $timeout, rateService) {
.factory('pendingTxsService', function($rootScope) {
var root = {};
root.update = function(w) {
var w = $rootScope.wallet;

View File

@ -23,7 +23,7 @@
<i class="fi-bitcoin-circle icon-rotate spinner"></i>
</span>
<span class="size-14" ng-show="!$root.updatingBalance">
<b>{{addr.balance || 0|noFractionNumber}} {{$root.wallet.settings.unitName}}</b>
<b>{{addr.balance || '0'}} {{$root.wallet.settings.unitName}}</b>
</span>
</div>
<div class="large-2 columns show-for-large-up text-right">
@ -42,7 +42,7 @@
<i class="fi-bitcoin-circle icon-rotate spinner"></i>
</span>
<span class="size-14" ng-show="!$root.updatingBalance">
<b>{{addr.balance || 0|noFractionNumber}} {{$root.wallet.settings.unitName}}</b>
<b>{{addr.balance || '0'}} {{$root.wallet.settings.unitName}}</b>
</span>
</div>
</div>