Skip to content

Commit

Permalink
[MNOE-223] Fix empty list of apps when clicking on current company
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnoox committed Oct 25, 2016
1 parent fbe244d commit a66dd6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ DashboardCompanySelectboxCtrl = ($scope, $location, $stateParams, $cookies, $sce
}

selectBox.changeTo = (organization) ->
return if organization.id == parseInt(MnoeOrganizations.selectedId)
MnoeAppInstances.emptyAppInstances()
MnoeAppInstances.clearCache()
MnoeOrganizations.get(organization.id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<div class="box-content scrollbar-hidden" uib-collapse="selectBox.isClosed">
<ul class="list-unstyled">
<li ng-repeat="organization in selectBox.user.organizations | orderBy:'name'" ng-click="selectBox.changeTo(organization)">
<li ng-repeat="organization in selectBox.user.organizations | orderBy:'name'" ng-click="selectBox.changeTo(organization)">
<a>
<i class="fa" ng-class="organization === selectBox.organization ? 'fa-dot-circle-o' : 'fa-circle-o'"></i>
<span>{{organization.name}}</span>
Expand Down

0 comments on commit a66dd6c

Please sign in to comment.