From a7abe7eddbba8c6b4c53eb2e68c567f6f39b1d52 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Fri, 12 Feb 2016 18:57:36 +0100 Subject: [PATCH] Ensure that star are displayed on non-round note --- webapp/js/directives.js | 3 +++ webapp/js/directives/album.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/js/directives.js b/webapp/js/directives.js index 8c6893b..a5d2c88 100644 --- a/webapp/js/directives.js +++ b/webapp/js/directives.js @@ -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); }); diff --git a/webapp/js/directives/album.html b/webapp/js/directives/album.html index 4431e09..38d01dc 100644 --- a/webapp/js/directives/album.html +++ b/webapp/js/directives/album.html @@ -3,7 +3,7 @@
{{album.titleDisplay}}
- +
{{album.ref}}