.
This commit is contained in:
parent
8297839c40
commit
752fa1e432
3 changed files with 10 additions and 15 deletions
|
|
@ -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})">
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue