;
This commit is contained in:
parent
b17517ede0
commit
6224f36ff6
7 changed files with 7 additions and 7 deletions
|
|
@ -1774,7 +1774,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.$on('Local/EmailUpdated', function(event, email) {
|
$rootScope.$on('Local/EmailUpdated', function(event, email) {
|
||||||
self.preferences.email = email
|
self.preferences.email = email;
|
||||||
});
|
});
|
||||||
|
|
||||||
lodash.each(['NewCopayer', 'CopayerUpdated'], function(eventName) {
|
lodash.each(['NewCopayer', 'CopayerUpdated'], function(eventName) {
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ angular.module('copayApp.controllers').controller('preferencesAltCurrencyControl
|
||||||
go.preferencesGlobal();
|
go.preferencesGlobal();
|
||||||
$scope.$emit('Local/UnitSettingUpdated');
|
$scope.$emit('Local/UnitSettingUpdated');
|
||||||
walletService.updateRemotePreferences(profileService.walletClients, {}, function() {
|
walletService.updateRemotePreferences(profileService.walletClients, {}, function() {
|
||||||
$log.debug('Remote preferences saved')
|
$log.debug('Remote preferences saved');
|
||||||
});
|
});
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ angular.module('copayApp.controllers').controller('preferencesLanguageController
|
||||||
|
|
||||||
walletService.updateRemotePreferences(profileService.getClients(), {},
|
walletService.updateRemotePreferences(profileService.getClients(), {},
|
||||||
function() {
|
function() {
|
||||||
$log.debug('Remote preferences saved')
|
$log.debug('Remote preferences saved');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ angular.module('copayApp.controllers').controller('preferencesUnitController',
|
||||||
go.preferencesGlobal();
|
go.preferencesGlobal();
|
||||||
$scope.$emit('Local/UnitSettingUpdated');
|
$scope.$emit('Local/UnitSettingUpdated');
|
||||||
walletService.updateRemotePreferences(profileService.getClients(), {}, function() {
|
walletService.updateRemotePreferences(profileService.getClients(), {}, function() {
|
||||||
$log.debug('Remote preferences saved')
|
$log.debug('Remote preferences saved');
|
||||||
});
|
});
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@ angular.module('copayApp.services').factory('walletService', function($log, loda
|
||||||
var config = configService.getSync().wallet.settings;
|
var config = configService.getSync().wallet.settings;
|
||||||
|
|
||||||
//prefs.email (may come from arguments)
|
//prefs.email (may come from arguments)
|
||||||
prefs.language = uxLanguage.getCurrentLanguage();;
|
prefs.language = uxLanguage.getCurrentLanguage();
|
||||||
prefs.unit = config.unitCode;
|
prefs.unit = config.unitCode;
|
||||||
|
|
||||||
updateRemotePreferencesFor(clients, prefs, function(err) {
|
updateRemotePreferencesFor(clients, prefs, function(err) {
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ describe('disclaimerController', function() {
|
||||||
initController: true,
|
initController: true,
|
||||||
noDisclaimer: true,
|
noDisclaimer: true,
|
||||||
}, done);
|
}, done);
|
||||||
})
|
});
|
||||||
|
|
||||||
afterEach(function(done) {
|
afterEach(function(done) {
|
||||||
mocks.clear({}, done);
|
mocks.clear({}, done);
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,7 @@ mocks.init = function(fixtures, controllerName, opts, done) {
|
||||||
should.not.exist(err, err);
|
should.not.exist(err, err);
|
||||||
if (opts.noDisclaimer){
|
if (opts.noDisclaimer){
|
||||||
return done();
|
return done();
|
||||||
};
|
}
|
||||||
_profileService_.setDisclaimerAccepted(function() {
|
_profileService_.setDisclaimerAccepted(function() {
|
||||||
if (!opts.initController)
|
if (!opts.initController)
|
||||||
startController();
|
startController();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue