Merge pull request #6516 from gabrielbazan7/fix/appname

use app name for err message
This commit is contained in:
Javier Donadío 2017-08-03 14:08:31 -03:00 committed by GitHub
commit 4f3d29b7f3

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.services')
.factory('profileService', function profileServiceFactory($rootScope, $timeout, $filter, $log, sjcl, lodash, storageService, bwcService, configService, gettextCatalog, bwcError, uxLanguage, platformInfo, txFormatService, $state) {
.factory('profileService', function profileServiceFactory($rootScope, $timeout, $filter, $log, $state, sjcl, lodash, storageService, bwcService, configService, gettextCatalog, bwcError, uxLanguage, platformInfo, txFormatService, appConfigService) {
var isChromeApp = platformInfo.isChromeApp;
@ -495,7 +495,9 @@ angular.module('copayApp.services')
var walletId = client.credentials.walletId
if (!root.profile.addWallet(JSON.parse(client.export())))
return cb(gettextCatalog.getString('Wallet already in Copay'));
return cb(gettextCatalog.getString("Wallet already in {{appName}}", {
appName: appConfigService.nameCase
}));
var skipKeyValidation = shouldSkipValidation(walletId);