open external link
This commit is contained in:
parent
e1d0e68797
commit
7dd54976a5
4 changed files with 16 additions and 3 deletions
|
|
@ -83,6 +83,9 @@ if [ ! -d $PROJECT ]; then
|
||||||
cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git --variable URL_SCHEME=bitcoin
|
cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git --variable URL_SCHEME=bitcoin
|
||||||
checkOK
|
checkOK
|
||||||
|
|
||||||
|
cordova plugin add org.apache.cordova.inappbrowser
|
||||||
|
checkOK
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
|
echo "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
var bitcore = require('bitcore');
|
var bitcore = require('bitcore');
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('HistoryController',
|
angular.module('copayApp.controllers').controller('HistoryController',
|
||||||
function($scope, $rootScope, $filter, $timeout, $modal, rateService, notification) {
|
function($scope, $rootScope, $filter, $timeout, $modal, rateService, notification, go) {
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
|
|
||||||
$rootScope.title = 'History';
|
$rootScope.title = 'History';
|
||||||
|
|
@ -145,6 +145,9 @@ angular.module('copayApp.controllers').controller('HistoryController',
|
||||||
return w.getNetworkName().substring(0, 4);
|
return w.getNetworkName().substring(0, 4);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.go = function(url) {
|
||||||
|
go.openExternalLink(url);
|
||||||
|
};
|
||||||
|
|
||||||
$scope.cancel = function() {
|
$scope.cancel = function() {
|
||||||
$modalInstance.dismiss('cancel');
|
$modalInstance.dismiss('cancel');
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,10 @@ angular.module('copayApp.services').factory('go', function($window, $location) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
root.openExternalLink = function(url) {
|
||||||
|
var ref = window.open(url, '_blank', 'location=no');
|
||||||
|
};
|
||||||
|
|
||||||
root.go = function(path) {
|
root.go = function(path) {
|
||||||
var parts = path.split('#');
|
var parts = path.split('#');
|
||||||
$location.path(parts[0]);
|
$location.path(parts[0]);
|
||||||
|
|
|
||||||
|
|
@ -79,8 +79,11 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="m10v text-right">
|
<div class="m10t oh">
|
||||||
<a href="http://{{getShortNetworkName()}}.insight.is/tx/{{btx.txid}}" target="_blank"> See it on the blockchain <i class="icon-arrow-right2 vm"></i></a>
|
<a class="right button-setup"
|
||||||
|
ng-click="go('http://' + getShortNetworkName() + '.insight.is/tx/' + btx.txid)">
|
||||||
|
See it on the blockchain <i class="icon-arrow-right2 vm"></i>
|
||||||
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue