added opt in option, and new inputs to make modal completely custom per use.
This commit is contained in:
parent
7becb504f4
commit
3b3d931892
1 changed files with 4 additions and 4 deletions
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
angular.module('copayApp.services').service('externalLinkService', function(platformInfo, nodeWebkitService, popupService, gettextCatalog) {
|
||||
|
||||
this.open = function(url, desc) {
|
||||
this.open = function(url, optIn, title, desc, okText, cancelText) {
|
||||
if (platformInfo.isNW) {
|
||||
nodeWebkitService.openExternalLink(url);
|
||||
} else {
|
||||
desc = desc || 'this link';
|
||||
var message = gettextCatalog.getString('You are leaving to view ' + desc + ''),
|
||||
var message = gettextCatalog.getString(desc),
|
||||
title = gettextCatalog.getString(title),
|
||||
openBrowser = function(res) {
|
||||
if (res) window.open(url, '_system');
|
||||
};
|
||||
popupService.showConfirm('Opening Browser', message, 'Open', 'Cancel', openBrowser);
|
||||
popupService.showConfirm(title, message, 'Open', 'Cancel', openBrowser);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue