This commit is contained in:
Matias Alejo Garcia 2016-08-17 13:32:41 -03:00
commit 752fa1e432
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
3 changed files with 10 additions and 15 deletions

View file

@ -1,10 +1,15 @@
<ion-view>
<ion-nav-title>Send confirmation</ion-nav-title>
<ion-pane>
<ion-nav-bar class="bar-stable">
<ion-nav-title>Confirm</ion-nav-title>
</ion-nav-bar>
<ion-content scroll="false" ng-controller="confirmController" ng-init="init()">
<ion-nav-buttons side="primary">
<button class="button" href ui-sref="amount({toAddress: toAddress, toName: toName, toAmount: toAmount})">

View file

@ -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;

View file

@ -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', {