.
This commit is contained in:
parent
8297839c40
commit
752fa1e432
3 changed files with 10 additions and 15 deletions
|
|
@ -1,11 +1,16 @@
|
||||||
<ion-view>
|
<ion-view>
|
||||||
|
|
||||||
<ion-nav-title>Send confirmation</ion-nav-title>
|
|
||||||
|
|
||||||
<ion-pane>
|
<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-content scroll="false" ng-controller="confirmController" ng-init="init()">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ion-nav-buttons side="primary">
|
<ion-nav-buttons side="primary">
|
||||||
<button class="button" href ui-sref="amount({toAddress: toAddress, toName: toName, toAmount: toAmount})">
|
<button class="button" href ui-sref="amount({toAddress: toAddress, toName: toName, toAmount: toAmount})">
|
||||||
<i class="ion-arrow-left-c"></i> Back
|
<i class="ion-arrow-left-c"></i> Back
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
var config;
|
var config;
|
||||||
|
|
||||||
$scope.init = function() {
|
$scope.init = function() {
|
||||||
console.log('[confirm.js.23:$scope:]',$stateParams); //TODO
|
|
||||||
|
|
||||||
// TODO (URL , etc)
|
// TODO (URL , etc)
|
||||||
if (!$stateParams.toAddress || !$stateParams.toAmount) {
|
if (!$stateParams.toAddress || !$stateParams.toAmount) {
|
||||||
|
|
@ -120,7 +119,7 @@ console.log('[confirm.js.23:$scope:]',$stateParams); //TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
txp.toAddress = toAddress;
|
txp.toAddress = toAddress;
|
||||||
// txp.outputs = outputs;
|
txp.outputs = outputs;
|
||||||
txp.message = comment;
|
txp.message = comment;
|
||||||
txp.payProUrl = paypro ? paypro.url : null;
|
txp.payProUrl = paypro ? paypro.url : null;
|
||||||
txp.excludeUnconfirmedUtxos = config.spendUnconfirmed ? false : true;
|
txp.excludeUnconfirmedUtxos = config.spendUnconfirmed ? false : true;
|
||||||
|
|
|
||||||
|
|
@ -182,32 +182,23 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
})
|
})
|
||||||
.state('amount', {
|
.state('amount', {
|
||||||
cache: false,
|
cache: false,
|
||||||
url: '/amount',
|
url: '/amount:/:toAddress/:toName',
|
||||||
needProfile: true,
|
needProfile: true,
|
||||||
views: {
|
views: {
|
||||||
'main': {
|
'main': {
|
||||||
templateUrl: 'views/amount.html',
|
templateUrl: 'views/amount.html',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
params: {
|
|
||||||
toAddress: null,
|
|
||||||
toName: null,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
.state('confirm', {
|
.state('confirm', {
|
||||||
cache: false,
|
cache: false,
|
||||||
url: '/confirm',
|
url: '/confirm/:toAddress/:toName/:toAmount',
|
||||||
needProfile: true,
|
needProfile: true,
|
||||||
views: {
|
views: {
|
||||||
'main': {
|
'main': {
|
||||||
templateUrl: 'views/confirm.html',
|
templateUrl: 'views/confirm.html',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
params: {
|
|
||||||
toAddress: null,
|
|
||||||
toName: null,
|
|
||||||
toAmount: null,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
.state('unsupported', {
|
.state('unsupported', {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue