do hide hidden nested sub-items in block directives

This commit is contained in:
2019-08-30 21:18:34 +02:00
parent 565d75a2c2
commit 08664003e0
@@ -117,6 +117,11 @@ angular.module('umbraco.directives').directive('unMedia', function ($http, $comp
titleCache[value] = item[scope.titleKey];
}
if (item['uNestingHide'] === '1')
{
return '';
}
return value;
}).join(',');
}
@@ -267,12 +272,15 @@ angular.module('umbraco.directives').directive('unBoxes', function ($compile)
var headline = item[scope.titleKey];
if (item['uNestingHide'] !== '1')
{
items.push({
maxLines: headline ? max - 1 : max,
headline: headline,
text: item[scope.key]
});
}
}
});
scope.items = items.slice(0, limit);