Making changes to implement display queue

This commit is contained in:
Henry
2015-10-13 17:13:24 -07:00
parent b2a09599a0
commit 2ba6f18c59
7 changed files with 33 additions and 6 deletions

View File

@ -3,6 +3,7 @@
<span class="label">
<a ng-click="newSuccess()">Success</a> |
<a ng-click="newError()">Error</a> |
<a ng-click="newAlert()">Alert</a> |
<a ng-click="newProgress()">Progress</a>
</span>
<span class="count">Notifications</span>

View File

@ -96,6 +96,21 @@ define(
actions: getExampleActions()});
};
$scope.newAlert = function(){
notificationService.notify({
title: "Error notification " + messageCounter++ + "!",
hint: "An error has occurred",
severity: MessageSeverity.ALERT,
primaryAction: {
label: 'Retry',
action: function() {
console.log('Retry clicked');
}
},
actions: getExampleActions()});
};
$scope.newProgress = function(){
var notification = {