iOS 9.3 fix
This commit is contained in:
parent
ddbc969de2
commit
1e1f5deb2a
2 changed files with 18 additions and 14 deletions
|
|
@ -104,12 +104,12 @@ angular.module('copayApp.controllers').controller('searchController', function($
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.searchOnBlockchain = function(searchTerm) {
|
$scope.searchOnBlockchain = function(searchTerm) {
|
||||||
const url = 'https://explorer.bitcoin.com/'+$scope.wallet.coin+'/search/' + searchTerm;
|
var url = 'https://explorer.bitcoin.com/'+$scope.wallet.coin+'/search/' + searchTerm;
|
||||||
const optIn = true;
|
var optIn = true;
|
||||||
const title = null;
|
var title = null;
|
||||||
const message = gettextCatalog.getString('Search on Explorer.Bitcoin.com');
|
var message = gettextCatalog.getString('Search on Explorer.Bitcoin.com');
|
||||||
const okText = gettextCatalog.getString('Open Explorer');
|
var okText = gettextCatalog.getString('Open Explorer');
|
||||||
const cancelText = gettextCatalog.getString('Go Back');
|
var cancelText = gettextCatalog.getString('Go Back');
|
||||||
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1179,17 +1179,21 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
|
|
||||||
if (signedTxp.status == 'accepted') {
|
if (signedTxp.status == 'accepted') {
|
||||||
ongoingProcess.set('broadcastingTx', true, customStatusHandler);
|
ongoingProcess.set('broadcastingTx', true, customStatusHandler);
|
||||||
function handleBroadcastTx(err, broadcastedTxp) {
|
|
||||||
ongoingProcess.set('broadcastingTx', false, customStatusHandler);
|
|
||||||
if (err) return cb(bwcError.msg(err));
|
|
||||||
$rootScope.$emit('Local/TxAction', wallet.id);
|
|
||||||
return cb(null, broadcastedTxp);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (signedTxp.payProUrl && signedTxp.coin == 'bch') {
|
if (signedTxp.payProUrl && signedTxp.coin == 'bch') {
|
||||||
payproService.broadcastBchTx(signedTxp, handleBroadcastTx);
|
payproService.broadcastBchTx(signedTxp, function(err, broadcastedTxp) {
|
||||||
|
ongoingProcess.set('broadcastingTx', false, customStatusHandler);
|
||||||
|
if (err) return cb(bwcError.msg(err));
|
||||||
|
$rootScope.$emit('Local/TxAction', wallet.id);
|
||||||
|
return cb(null, broadcastedTxp);
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
root.broadcastTx(wallet, signedTxp, handleBroadcastTx);
|
root.broadcastTx(wallet, signedTxp, function(err, broadcastedTxp) {
|
||||||
|
ongoingProcess.set('broadcastingTx', false, customStatusHandler);
|
||||||
|
if (err) return cb(bwcError.msg(err));
|
||||||
|
$rootScope.$emit('Local/TxAction', wallet.id);
|
||||||
|
return cb(null, broadcastedTxp);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$rootScope.$emit('Local/TxAction', wallet.id);
|
$rootScope.$emit('Local/TxAction', wallet.id);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue