add wallet information to custom amount and addresses view
This commit is contained in:
parent
dbc49e9ce0
commit
813d89a139
6 changed files with 10 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('customAmountController', function($rootScope, $scope, $stateParams, $ionicHistory, txFormatService, platformInfo) {
|
||||
angular.module('copayApp.controllers').controller('customAmountController', function($rootScope, $scope, $stateParams, $ionicHistory, txFormatService, platformInfo, profileService) {
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
var satToBtc = 1 / 100000000;
|
||||
|
|
@ -10,6 +10,7 @@ angular.module('copayApp.controllers').controller('customAmountController', func
|
|||
$scope.amountBtc = ($scope.amount * satToBtc).toFixed(8);
|
||||
$scope.amountStr = txFormatService.formatAmountStr($scope.amount);
|
||||
$scope.altAmountStr = txFormatService.formatAlternativeStr($scope.amount);
|
||||
$scope.wallet = profileService.getWallet($stateParams.walletId);
|
||||
});
|
||||
|
||||
$scope.finish = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue