Skip to content

Commit

Permalink
Merge pull request #4296 from camptocamp/GSGMF-655
Browse files Browse the repository at this point in the history
Don't use ng-class with fa-spin
  • Loading branch information
fredj authored Oct 8, 2018
2 parents 7a39b38 + 69518d8 commit dc4e064
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contribs/gmf/src/layertree/component.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@
<a
href
ng-click="::gmfLayertreeCtrl.toggleActive(layertreeCtrl)"
ng-if="::layertreeCtrl.node.children"
ng-class="['fa fa-fw', layertreeCtrl.node.children && !layertreeCtrl.layer.loading ? 'gmf-layertree-state' : 'fa-refresh fa-spin']">
ng-if="::layertreeCtrl.node.children">
<span ng-switch="layertreeCtrl.node.children && !layertreeCtrl.layer.loading">
<i ng-switch-when="true" class="fa fa-fw gmf-layertree-state"></i>
<i ng-switch-when="false" class="fa fa-fw fa-refresh fa-spin"></i>
</span>
</a>

<a
Expand Down

0 comments on commit dc4e064

Please sign in to comment.