Further integration work

This commit is contained in:
Henry
2015-10-09 10:59:36 -07:00
parent 8267058487
commit 2b97d61d6c
5 changed files with 43 additions and 14 deletions

View File

@@ -3,16 +3,18 @@
class="l-message-banner s-message-banner">
<span class="banner-elem label">
{{active.notification.title}}
</span><mct-include key="'progress-bar'"
class="banner-elem"
ng-model="ngModel"
ng-hide-x="ngModel.dialog.progress === undefined">
</mct-include>
<a ng-hide="active.notification.progress === undefined"
class="banner-elem l-action s-action">
Try Again
</span>
<span ng-hide="active.notification.progress === undefined">
<mct-include key="'progress-bar'" class="banner-elem"
ng-model="ngModel">
</mct-include>
</span>
<a ng-hide="active.notification.primaryAction === undefined"
class="banner-elem l-action s-action"
ng-click="active.notification.primaryAction.action">
{{active.notification.primaryAction.label}}
</a>
<a class="banner-elem ui-symbol close">&#x78;</a>
<a class="banner-elem ui-symbol close" ng-click="dismiss(active.notification)">
&#x78;</a>
</div>
</div>

View File

@@ -27,6 +27,9 @@ define(
"use strict";
function BannerController($scope, notificationService){
$scope.active = notificationService.active;
$scope.dismiss = function(notification){
notificationService.dismissOrMinimize(notification);
}
}
return BannerController;
});