mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
fix build failure
This commit is contained in:
@@ -77,13 +77,13 @@ module.directive('category', [function() {
|
||||
node : '=',
|
||||
selectedType : '=',
|
||||
selectedId : '=',
|
||||
unreadCount : '&',
|
||||
unreadCount : '&'
|
||||
},
|
||||
restrict : 'E',
|
||||
replace : true,
|
||||
templateUrl : 'directives/category.html',
|
||||
controller : function($scope, $state, $dialog, FeedService, CategoryService,
|
||||
SettingsService) {
|
||||
controller : function($scope, $state, $dialog, FeedService,
|
||||
CategoryService, SettingsService) {
|
||||
$scope.settingsService = SettingsService;
|
||||
$scope.unsubscribe = function(subscription) {
|
||||
var title = 'Unsubscribe';
|
||||
@@ -111,7 +111,9 @@ module.directive('category', [function() {
|
||||
};
|
||||
|
||||
$scope.formatCategoryName = function(category) {
|
||||
var count = $scope.unreadCount({category:category});
|
||||
var count = $scope.unreadCount({
|
||||
category : category
|
||||
});
|
||||
var label = category.name;
|
||||
if (count > 0) {
|
||||
label = label + ' (' + count + ')';
|
||||
|
||||
Reference in New Issue
Block a user