user setting for showing or hiding 'empty' categories and feeds

This commit is contained in:
Athou
2013-04-12 09:57:18 +02:00
parent 38c58fcf64
commit 65552294cc
7 changed files with 48 additions and 11 deletions

View File

@@ -90,7 +90,7 @@ module.controller('CategoryTreeCtrl', function($scope, $timeout, $stateParams,
$scope.selectedType = $stateParams._type;
$scope.selectedId = $stateParams._id;
$scope.$on('$stateChangeSuccess', function() {
$scope.selectedType = $stateParams._type;
$scope.selectedId = $stateParams._id;

View File

@@ -86,7 +86,8 @@ module.directive('category', function($compile) {
restrict : 'E',
replace : true,
templateUrl : 'directives/category.html',
controller : function($scope, $dialog, SubscriptionService) {
controller : function($scope, $dialog, SubscriptionService, SettingsService) {
$scope.settingsService=SettingsService;
$scope.unsubscribe = function(subscription) {
var title = 'Unsubscribe';
var msg = 'Unsubscribe from ' + subscription.name + ' ?';