Fixes the back button after scan a qr code
This commit is contained in:
parent
744b03a0f7
commit
4454482c53
1 changed files with 4 additions and 3 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.services').factory('incomingData', function($log, $state, $window, bitcore, lodash) {
|
angular.module('copayApp.services').factory('incomingData', function($log, $state, $window, $timeout, bitcore, lodash) {
|
||||||
|
|
||||||
var root = {};
|
var root = {};
|
||||||
|
|
||||||
root.redir = function(data) {
|
root.redir = function(data) {
|
||||||
$log.debug('Processing incoming data:' +data);
|
$log.debug('Processing incoming data: ' + data);
|
||||||
|
|
||||||
function sanitizeUri(data) {
|
function sanitizeUri(data) {
|
||||||
// Fixes when a region uses comma to separate decimals
|
// Fixes when a region uses comma to separate decimals
|
||||||
|
|
@ -53,7 +53,8 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
|
||||||
|
|
||||||
var amount = parsed.amount ? parsed.amount : '';
|
var amount = parsed.amount ? parsed.amount : '';
|
||||||
|
|
||||||
$state.go('tabs.send').then(function() {
|
$state.go('tabs.send');
|
||||||
|
$timeout(function() {
|
||||||
if (parsed.r) {
|
if (parsed.r) {
|
||||||
$state.transitionTo('tabs.send.confirm', {paypro: parsed.r});
|
$state.transitionTo('tabs.send.confirm', {paypro: parsed.r});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue