umb-notifications.html - added option for setting the target attribute (#8224)

(cherry picked from commit 5642e56dd7)
This commit is contained in:
Anders Bjerner
2020-07-22 20:19:15 +02:00
committed by Sebastiaan Janssen
parent c8488b6683
commit 16769e9504
2 changed files with 2 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ angular.module('umbraco.services')
* @param {String} item.message longer text for the notication, trimmed after 200 characters, which can then be exanded
* @param {String} item.type Notification type, can be: "success","warning","error" or "info"
* @param {String} item.url url to open when notification is clicked
* @param {String} item.target the target used together with `url`. Empty if not specified.
* @param {String} item.view path to custom view to load into the notification box
* @param {Array} item.actions Collection of button actions to append (label, func, cssClass)
* @param {Boolean} item.sticky if set to true, the notification will not auto-close

View File

@@ -9,7 +9,7 @@
</div>
<div ng-if="notification.headline">
<a ng-if="notification.url" ng-href="{{notification.url}}" href="" target="_blank">
<a ng-if="notification.url" ng-href="{{notification.url}}" href="" target="{{notification.target}}" rel="noreferrer">
<strong ng-bind="notification.headline"></strong>
<span ng-bind-html="notification.message"></span>
</a>