use different block explorer
This commit is contained in:
parent
6ff6e377d3
commit
f51f3b8074
2 changed files with 7 additions and 5 deletions
|
|
@ -5,6 +5,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
|
||||||
var txId;
|
var txId;
|
||||||
var listeners = [];
|
var listeners = [];
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
|
var defaults = configService.getDefaults();
|
||||||
var blockexplorerUrl;
|
var blockexplorerUrl;
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
|
|
@ -16,11 +17,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
|
||||||
$scope.isShared = $scope.wallet.credentials.n > 1;
|
$scope.isShared = $scope.wallet.credentials.n > 1;
|
||||||
$scope.txsUnsubscribedForNotifications = config.confirmedTxsNotifications ? !config.confirmedTxsNotifications.enabled : true;
|
$scope.txsUnsubscribedForNotifications = config.confirmedTxsNotifications ? !config.confirmedTxsNotifications.enabled : true;
|
||||||
|
|
||||||
if ($scope.wallet.coin == 'bch') {
|
blockexplorerUrl = defaults.blockExplorer[$scope.wallet.coin];
|
||||||
blockexplorerUrl = 'bch-insight.bitpay.com';
|
|
||||||
} else {
|
|
||||||
blockexplorerUrl = 'insight.bitpay.com';
|
|
||||||
}
|
|
||||||
|
|
||||||
txConfirmNotification.checkIfEnabled(txId, function(res) {
|
txConfirmNotification.checkIfEnabled(txId, function(res) {
|
||||||
$scope.txNotification = {
|
$scope.txNotification = {
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,11 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
blockExplorer: {
|
||||||
|
btc: 'explorer.bitcoin.com/btc',
|
||||||
|
bch: 'explorer.bitcoin.com/bch'
|
||||||
|
},
|
||||||
|
|
||||||
rateApp: {
|
rateApp: {
|
||||||
bitpay: {
|
bitpay: {
|
||||||
ios: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=1149581638&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8',
|
ios: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=1149581638&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue