Merge pull request #108 from Bitcoin-com/removemodal-explorer

Update: Skips intermediate modal when clicking on View on blockchain …
This commit is contained in:
Sam Cheng Hung 2018-05-10 12:41:15 +08:00 committed by GitHub
commit 93f094bb0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View file

@ -201,12 +201,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
$scope.viewOnBlockchain = function() { $scope.viewOnBlockchain = function() {
var btx = $scope.btx; var btx = $scope.btx;
var url = 'https://' + ($scope.getShortNetworkName() == 'test' ? 'test-' : '') + blockexplorerUrl + '/tx/' + btx.txid; var url = 'https://' + ($scope.getShortNetworkName() == 'test' ? 'test-' : '') + blockexplorerUrl + '/tx/' + btx.txid;
var optIn = true; window.open(url, '_system');
var title = null;
var message = gettextCatalog.getString('View Transaction on Explorer.Bitcoin.com');
var okText = gettextCatalog.getString('Open Explorer');
var cancelText = gettextCatalog.getString('Go Back');
externalLinkService.open(url, optIn, title, message, okText, cancelText);
}; };
$scope.getShortNetworkName = function() { $scope.getShortNetworkName = function() {

View file

@ -10491,7 +10491,7 @@ textarea.d-block {
right: 0; right: 0;
top: 50%; top: 50%;
transform: translate(0, -50%); transform: translate(0, -50%);
padding: 5px; } padding: 15px; }
#view-amount .scroll-content .send-amount .send-amount-tool .send-amount-tool-input .switch-currencies img { #view-amount .scroll-content .send-amount .send-amount-tool .send-amount-tool-input .switch-currencies img {
width: 18px; } width: 18px; }
#view-amount .scroll-content .send-amount .send-amount-tool .send-amount-actions { #view-amount .scroll-content .send-amount .send-amount-tool .send-amount-actions {