diff --git a/public/views/confirm.html b/public/views/confirm.html index df6db6076..2c9019cec 100644 --- a/public/views/confirm.html +++ b/public/views/confirm.html @@ -1,10 +1,15 @@ - Send confirmation - + + Confirm + + + + + diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index 34df57178..754370e45 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -27,7 +27,6 @@ angular.module('copayApp.controllers').controller('confirmController', function( var config; $scope.init = function() { -console.log('[confirm.js.23:$scope:]',$stateParams); //TODO // TODO (URL , etc) if (!$stateParams.toAddress || !$stateParams.toAmount) { @@ -120,7 +119,7 @@ console.log('[confirm.js.23:$scope:]',$stateParams); //TODO } txp.toAddress = toAddress; -// txp.outputs = outputs; + txp.outputs = outputs; txp.message = comment; txp.payProUrl = paypro ? paypro.url : null; txp.excludeUnconfirmedUtxos = config.spendUnconfirmed ? false : true; diff --git a/src/js/routes.js b/src/js/routes.js index 2b3ef502f..7571876a0 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -182,32 +182,23 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr }) .state('amount', { cache: false, - url: '/amount', + url: '/amount:/:toAddress/:toName', needProfile: true, views: { 'main': { templateUrl: 'views/amount.html', }, }, - params: { - toAddress: null, - toName: null, - }, }) .state('confirm', { cache: false, - url: '/confirm', + url: '/confirm/:toAddress/:toName/:toAmount', needProfile: true, views: { 'main': { templateUrl: 'views/confirm.html', }, }, - params: { - toAddress: null, - toName: null, - toAmount: null, - }, }) .state('unsupported', {