2015-10-30 23:20:57 +00:00
|
|
|
<div ng-controller="BannerController" ng-show="active.notification"
|
2019-03-21 22:07:16 +00:00
|
|
|
class="c-message-banner {{active.notification.model.severity}}" ng-class="{
|
2015-10-30 23:20:57 +00:00
|
|
|
'minimized': active.notification.model.minimized,
|
|
|
|
'new': !active.notification.model.minimized}"
|
|
|
|
ng-click="maximize(active.notification)">
|
2019-03-21 22:07:16 +00:00
|
|
|
<span class="c-message-banner__message">
|
2015-10-30 23:20:57 +00:00
|
|
|
{{active.notification.model.title}}
|
|
|
|
</span>
|
|
|
|
<span ng-show="active.notification.model.progress !== undefined || active.notification.model.unknownProgress">
|
2019-03-21 22:07:16 +00:00
|
|
|
<mct-include key="'progress-bar'" class="c-message-banner__progress-bar"
|
2015-10-30 23:20:57 +00:00
|
|
|
ng-model="active.notification.model">
|
|
|
|
</mct-include>
|
|
|
|
</span>
|
|
|
|
<a ng-hide="active.notification.model.primaryOption === undefined"
|
|
|
|
class="banner-elem l-action s-action"
|
|
|
|
ng-click="action(active.notification.model.primaryOption.callback, $event)">
|
|
|
|
{{active.notification.model.primaryOption.label}}
|
|
|
|
</a>
|
2019-03-21 22:07:16 +00:00
|
|
|
<button class="c-message-banner__close-button c-click-icon icon-x-in-circle" ng-click="dismiss(active.notification, $event)"></button>
|
2017-04-05 21:35:12 +00:00
|
|
|
</div>
|