Return automatically after set unit/lang/alt/color

This commit is contained in:
Gustavo Maximiliano Cortez 2015-11-13 16:00:28 -03:00
commit 370fbd5924
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
9 changed files with 31 additions and 18 deletions

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesLanguageController',
function($scope, $log, $timeout, configService, uxLanguage) {
function($scope, $log, $timeout, configService, uxLanguage, go) {
this.availableLanguages = uxLanguage.getLanguages();
@ -17,6 +17,7 @@ angular.module('copayApp.controllers').controller('preferencesLanguageController
configService.set(opts, function(err) {
if (err) $log.warn(err);
go.preferencesGlobal();
$scope.$emit('Local/LanguageSettingUpdated');
$timeout(function() {
$scope.$apply();