Commit e4f705ff authored by Benoit Lavenier's avatar Benoit Lavenier

[fix] Fix API locale flag

parent 321b9e7c
......@@ -82,7 +82,7 @@ angular.module('cesium-api', ['ionic', 'ionic-material', 'ngMessages', 'pascalpr
$scope.showLocalesPopover = function(event) {
UIUtils.popover.show(event, {
templateUrl: 'templates/api/locales_popover.html',
templateUrl: 'templates/api/popover_locales.html',
scope: $scope,
autoremove: true,
afterShow: function(popover) {
......
......@@ -7,7 +7,7 @@
<!-- locales -->
<button class="button button-clear hidden-xs hidden-sm flag"
ng-click="showLocalesPopover($event)" style="align-content: center">
<i class="flag-image" style="background-image: url(../img/flag-{{$root.settings.locale.flag}}.png);"></i>
<i class="flag-image" ng-if="$root.settings.locale" style="background-image: url(../img/flag-{{$root.settings.locale.flag}}.png);"></i>
<b class="ion-arrow-down-b gray"></b>
</button>
</ion-nav-buttons>
......
......@@ -6,7 +6,9 @@
<!-- locales -->
<button class="button button-clear hidden-xs hidden-sm flag"
ng-click="showLocalesPopover($event)" style="align-content: center">
<i class="flag-image" style="background-image: url(./img/flag-{{$root.settings.locale.flag}}.png);"></i>
<i class="flag-image"
ng-if=":locale:$root.settings.locale"
style="background-image: url(./img/flag-{{$root.settings.locale.flag}}.png);"></i>
<b class="ion-arrow-down-b gray"></b>
</button>
</ion-nav-buttons>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment