mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 22:58:14 +00:00
Making changes to implement display queue
This commit is contained in:
@ -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>
|
||||
|
@ -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 = {
|
||||
|
Reference in New Issue
Block a user