Fix language selection - IOs
This commit is contained in:
parent
8e8d17de6a
commit
66fc3fe416
2 changed files with 15 additions and 26 deletions
|
|
@ -3,11 +3,14 @@
|
|||
angular.module('copayApp.controllers').controller('preferencesLanguageController',
|
||||
function($scope, $log, $timeout, configService, profileService, uxLanguage, walletService, go) {
|
||||
|
||||
this.availableLanguages = uxLanguage.getLanguages();
|
||||
this.currentLanguage = uxLanguage.getCurrentLanguage();
|
||||
this.init = function() {
|
||||
this.availableLanguages = uxLanguage.getLanguages();
|
||||
$scope.data = {
|
||||
currentLanguage: uxLanguage.getCurrentLanguage()
|
||||
};
|
||||
};
|
||||
|
||||
this.save = function(newLang) {
|
||||
|
||||
var opts = {
|
||||
wallet: {
|
||||
settings: {
|
||||
|
|
@ -20,16 +23,10 @@ angular.module('copayApp.controllers').controller('preferencesLanguageController
|
|||
if (err) $log.warn(err);
|
||||
go.preferencesGlobal();
|
||||
|
||||
|
||||
uxLanguage.update(function() {
|
||||
$timeout(function() {
|
||||
$scope.$apply();
|
||||
}, 100);
|
||||
|
||||
walletService.updateRemotePreferences(profileService.getClients(), {},
|
||||
function() {
|
||||
$log.debug('Remote preferences saved');
|
||||
});
|
||||
walletService.updateRemotePreferences(profileService.getClients(), {}, function() {
|
||||
$log.debug('Remote preferences saved');
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue