tree hover

This commit is contained in:
Athou
2013-05-01 17:04:49 +02:00
parent cd10ee2e0a
commit 451979589c
4 changed files with 45 additions and 14 deletions

View File

@@ -93,6 +93,7 @@ module.directive('category', [ function() {
return {
scope : {
node : '=',
level: '=',
selectedType : '=',
selectedId : '=',
showLabel : '=',
@@ -112,6 +113,12 @@ module.directive('category', [ function() {
function($scope, $state, $dialog, FeedService, CategoryService,
SettingsService) {
$scope.settingsService = SettingsService;
$scope.getClass = function(level) {
if ($scope.showLabel){
return 'indent' + level;
}
};
$scope.formatCategoryName = function(category) {
var count = $scope.unreadCount({