added checks for whitespace

This commit is contained in:
Poornima Nayar
2018-09-14 10:06:32 +01:00
parent a0ae39a147
commit 7f4280c67f

View File

@@ -10,7 +10,7 @@
<div ng-include="notification.view"></div>
</div>
<div ng-if="notification.headline" ng-switch on="{{notification}}">
<a ng-href="{{notification.url}}" ng-switch-when="{{notification.url != null}}" target="_blank">
<a ng-href="{{notification.url}}" ng-switch-when="{{notification.url && notification.url.trim() != ''}}" target="_blank">
<strong>{{notification.headline}}</strong>
<span ng-bind-html="notification.message"></span>
</a>