fixed url opening in android and ios
This commit is contained in:
parent
f8baca943c
commit
37b13fb783
5 changed files with 9 additions and 25 deletions
|
|
@ -20,4 +20,8 @@ angular.module('copayApp.controllers').controller('communityController', functio
|
||||||
window.plugins.socialsharing.share(text, null, null, null);
|
window.plugins.socialsharing.share(text, null, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.open = function(url) {
|
||||||
|
window.open(url, '_system');
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,7 @@ angular.module('copayApp.controllers').controller('nextStepsController', functio
|
||||||
}, 10);
|
}, 10);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.open = function(url) {
|
||||||
|
window.open(url, '_system');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<span>{{service.title || service.name}}</span>
|
<span>{{service.title || service.name}}</span>
|
||||||
<i class="icon bp-arrow-right"></i>
|
<i class="icon bp-arrow-right"></i>
|
||||||
</a>
|
</a>
|
||||||
<a ng-if="!service.sref" href="{{service.href}}" class="item item-sub item-icon-left item-big-icon-left item-icon-right next-step">
|
<a ng-if="!service.sref" ng-click="open('{{service.href}}')" class="item item-sub item-icon-left item-big-icon-left item-icon-right next-step">
|
||||||
<i class="icon big-icon-svg">
|
<i class="icon big-icon-svg">
|
||||||
<div class="bg {{service.icon}}"></div>
|
<div class="bg {{service.icon}}"></div>
|
||||||
</i>
|
</i>
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,6 @@
|
||||||
<action-sheet
|
<action-sheet
|
||||||
action-sheet-show="showMenu">
|
action-sheet-show="showMenu">
|
||||||
|
|
||||||
<div ng-if="type === 'url'">
|
|
||||||
<div class="incoming-data-menu__item head">
|
|
||||||
<div class="incoming-data-menu__header" translate>Website</div>
|
|
||||||
<div class="incoming-data-menu__url">
|
|
||||||
<div class="incoming-data-menu__url__icon">
|
|
||||||
<img ng-hide="https" src="img/icon-lock-x.svg" style="height: 22px;">
|
|
||||||
<img ng-show="https" src="img/icon-lock-green.svg" style="height: 22px;">
|
|
||||||
</div>
|
|
||||||
<div class="incoming-data-menu__url__text">
|
|
||||||
{{data}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<a class="incoming-data-menu__item item item-icon-right" ng-click="goToUrl(data)">
|
|
||||||
<img src="img/icon-link-external.svg">
|
|
||||||
<div class="incoming-data-menu__item__text" translate>Open website</div>
|
|
||||||
<i class="icon bp-arrow-right"></i>
|
|
||||||
</a>
|
|
||||||
<a class="incoming-data-menu__cancel item" ng-click="hide()" translate>
|
|
||||||
Cancel
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div ng-if="type === 'bitcoinAddress'">
|
<div ng-if="type === 'bitcoinAddress'">
|
||||||
<div class="incoming-data-menu__item head">
|
<div class="incoming-data-menu__item head">
|
||||||
<div class="incoming-data-menu__header" translate>Bitcoin Address</div>
|
<div class="incoming-data-menu__header" translate>Bitcoin Address</div>
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<span>{{service.title || service.name}}</span>
|
<span>{{service.title || service.name}}</span>
|
||||||
<i class="icon bp-arrow-right"></i>
|
<i class="icon bp-arrow-right"></i>
|
||||||
</a>
|
</a>
|
||||||
<a ng-if="!service.sref" href="{{service.href}}" class="item item-sub item-icon-left item-big-icon-left item-icon-right next-step">
|
<a ng-if="!service.sref" ng-click="open('{{service.href}}')" class="item item-sub item-icon-left item-big-icon-left item-icon-right next-step">
|
||||||
<i class="icon big-icon-svg">
|
<i class="icon big-icon-svg">
|
||||||
<div class="bg {{service.icon}}"></div>
|
<div class="bg {{service.icon}}"></div>
|
||||||
</i>
|
</i>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue