Commit 9fa26d1d by Jose Antonio

Fix binding sceneList

parent 5c915b96
...@@ -287,7 +287,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec ...@@ -287,7 +287,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
ngToast.success({ content: translation }); ngToast.success({ content: translation });
}); });
location.reload(); $scope.loadScenesList();
}).error(function () {}); }).error(function () {});
......
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
<hr> <hr>
<div class="list-group"> <div class="list-group">
<a class="list-group-item" ng-repeat="scene in scenesList" ng-click="showScene(scene.id)" ng-class="(scene.id == viewingScene.id) ? 'active' : ''"> <a class="list-group-item" ng-repeat="scene in scenesList track by $index" ng-click="showScene(scene.id)" ng-class="(scene.id == viewingScene.id) ? 'active' : ''">
<i class="fa fa-star" aria-hidden="true" ng-if="scene.active"></i> {{ scene.name }} <i class="fa fa-star" aria-hidden="true" ng-if="scene.active"></i> {{ scene.name }}
</a> </a>
</div> </div>
......
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 sign in to comment