refactor ux language handling

This commit is contained in:
Matias Alejo Garcia 2015-08-27 12:07:13 -03:00
commit 55afc4d9d4
8 changed files with 125 additions and 81 deletions

View file

@ -9,7 +9,7 @@
<div class="content preferences" ng-controller="preferencesLanguageController as prefLang">
<div class="animated infinite flash text-center m20t text-gray" ng-show="prefLang.loading" translate>Applying changes</div>
<div ng-show="!prefLang.loading"
ng-repeat="lang in index.availableLanguages"
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>