bugs with some elements not showing fixed

This commit is contained in:
Gerard 2019-02-01 13:52:26 +01:00
parent 9023601396
commit 89826182c2
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,9 @@ function vnVisibleBy(aclService) {
restrict: 'A',
priority: -1,
link: function($scope, $element, $attrs) {
let acls = $attrs.vnVisibleBy.split(',');
let acls = $attrs.vnVisibleBy.replace(/\s/g, '');
acls = acls.split(',');
if (!aclService.hasAny(acls))
$element[0].style.visibility = 'hidden';
}