using app name properly
This commit is contained in:
parent
fdc25da720
commit
6a4b351154
3 changed files with 21 additions and 10 deletions
|
|
@ -41,9 +41,14 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
|
|||
$scope.openExternalLink = function() {
|
||||
var url = 'https://help.bitpay.com/bitpay-app';
|
||||
var optIn = true;
|
||||
var title = gettextCatalog.getString('BitPay Help Center');
|
||||
var message = gettextCatalog.getString('Help and support information is available at the BitPay Help Center website.');
|
||||
var okText = gettextCatalog.getString('Open Help Center');
|
||||
var appName = appConfigService.name;
|
||||
var title = gettextCatalog.getString('{{msg}}', {
|
||||
msg: appName == 'copay' ? 'Copay Github Issues' : 'BitPay Help Center'
|
||||
});
|
||||
var message = gettextCatalog.getString('Help and support information is available at the {{msg}} website.', {
|
||||
msg: appName == 'copay' ? 'Copay Github Issues' : 'BitPay Help Center'
|
||||
});
|
||||
var okText = gettextCatalog.getString('Open');
|
||||
var cancelText = gettextCatalog.getString('Go Back');
|
||||
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue