Ensure that star are displayed on non-round note
This commit is contained in:
@@ -15,10 +15,13 @@ directives.directive('album', function() {
|
||||
});
|
||||
|
||||
directives.controller('AlbumCtrl', function($scope,$http,$log,$uibModal,albumService) {
|
||||
//we need to make sure rating is not rendered before note is known
|
||||
$scope.render = false;
|
||||
$scope.album = { Note:-1};
|
||||
albumService.get($scope.id)
|
||||
.then(function(data) {
|
||||
$scope.album = data;
|
||||
$scope.render = true;
|
||||
}, function(err) {
|
||||
$log.error('Could not fetch album ' + $scope.id + ' :' + err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user