diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index a3de513ad..b0fe9e6fe 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.controllers').controller('indexController', function($rootScope, $scope, $log, $filter, $timeout, lodash, go, profileService, configService, isCordova, rateService, storageService, addressService, gettextCatalog, gettext, amMoment, nodeWebkit, addonManager, feeService, isChromeApp, bwsError, utilService, $state, glideraService) { +angular.module('copayApp.controllers').controller('indexController', function($rootScope, $scope, $log, $filter, $timeout, lodash, go, profileService, configService, isCordova, rateService, storageService, addressService, gettextCatalog, gettext, amMoment, nodeWebkit, addonManager, feeService, isChromeApp, bwsError, txFormatService, glideraService) { var self = this; self.isCordova = isCordova; self.onGoingProcess = {}; @@ -484,7 +484,7 @@ console.log('[index.js:395]',txps); //TODO self.pendingTxProposalsCountForUs = 0; lodash.each(txps, function(tx) { - tx = utilService.processTx(tx); + tx = txFormatService.processTx(tx); var action = lodash.find(tx.actions, { copayerId: self.copayerId @@ -519,7 +519,7 @@ console.log('[index.js:395]',txps); //TODO var c = 0; self.txHistoryPaging = txs[self.limitHistory] ? true : false; lodash.each(txs, function(tx) { - tx = utilService.processTx(tx); + tx = txFormatService.processTx(tx); // no future transactions... if (tx.time > now) diff --git a/src/js/controllers/walletHome.js b/src/js/controllers/walletHome.js index cc868c659..10fe9ee20 100644 --- a/src/js/controllers/walletHome.js +++ b/src/js/controllers/walletHome.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $rootScope, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog, nodeWebkit, addressService, feeService, bwsError, utilService) { +angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $rootScope, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog, nodeWebkit, addressService, feeService, bwsError, txFormatService) { var self = this; $rootScope.hideMenuBar = false; @@ -222,7 +222,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi var action = lodash.find(tx.actions, { copayerId: fc.credentials.copayerId }); - $scope.tx = utilService.processTx(tx); + $scope.tx = txFormatService.processTx(tx); if (!action && tx.status == 'pending') $scope.tx.pendingForUs = true; $scope.updateCopayerList(); diff --git a/src/js/services/utilService.js b/src/js/services/txFormatService.js similarity index 91% rename from src/js/services/utilService.js rename to src/js/services/txFormatService.js index 08b4787c3..d94d9bf92 100644 --- a/src/js/services/utilService.js +++ b/src/js/services/txFormatService.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.services').factory('utilService', function(profileService, rateService, configService, lodash) { +angular.module('copayApp.services').factory('txFormatService', function(profileService, rateService, configService, lodash) { var root = {}; var formatAmountStr = function(amount) {