fix build failure

This commit is contained in:
Athou
2013-04-24 13:16:53 +02:00
parent cde844b4a5
commit 1504924a76

View File

@@ -77,13 +77,13 @@ module.directive('category', [function() {
node : '=', node : '=',
selectedType : '=', selectedType : '=',
selectedId : '=', selectedId : '=',
unreadCount : '&', unreadCount : '&'
}, },
restrict : 'E', restrict : 'E',
replace : true, replace : true,
templateUrl : 'directives/category.html', templateUrl : 'directives/category.html',
controller : function($scope, $state, $dialog, FeedService, CategoryService, controller : function($scope, $state, $dialog, FeedService,
SettingsService) { CategoryService, SettingsService) {
$scope.settingsService = SettingsService; $scope.settingsService = SettingsService;
$scope.unsubscribe = function(subscription) { $scope.unsubscribe = function(subscription) {
var title = 'Unsubscribe'; var title = 'Unsubscribe';
@@ -111,7 +111,9 @@ module.directive('category', [function() {
}; };
$scope.formatCategoryName = function(category) { $scope.formatCategoryName = function(category) {
var count = $scope.unreadCount({category:category}); var count = $scope.unreadCount({
category : category
});
var label = category.name; var label = category.name;
if (count > 0) { if (count > 0) {
label = label + ' (' + count + ')'; label = label + ' (' + count + ')';