Fix selected languages from preferences

This commit is contained in:
Gustavo Maximiliano Cortez 2016-02-29 12:01:34 -03:00
parent cb63fd8f87
commit f28cbae100
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@
ng-repeat="lang in prefLang.availableLanguages"
ng-click="prefLang.save(lang.isoCode)" class="line-b p20 size-14">
<span>{{lang.name}}</span>
<i class="fi-check size-16 right" ng-show="index.defaultLanguageIsoCode == lang.isoCode"></i>
<i class="fi-check size-16 right" ng-show="prefLang.currentLanguage == lang.isoCode"></i>
</li>
</ul>
</div>

View File

@ -4,6 +4,7 @@ angular.module('copayApp.controllers').controller('preferencesLanguageController
function($scope, $log, $timeout, configService, uxLanguage, go) {
this.availableLanguages = uxLanguage.getLanguages();
this.currentLanguage = uxLanguage.getCurrentLanguage();
this.save = function(newLang) {