mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 11:17:04 +00:00
Fixed jshint errors
This commit is contained in:
parent
301b73c6c6
commit
f08725b6a2
@ -31,7 +31,7 @@ define(
|
||||
$scope.action = function (action, $event){
|
||||
$event.stopPropagation();
|
||||
return action();
|
||||
}
|
||||
};
|
||||
$scope.dismiss = function(notification, $event) {
|
||||
$event.stopPropagation();
|
||||
notificationService.dismissOrMinimize(notification);
|
||||
@ -40,10 +40,10 @@ define(
|
||||
if (notification.severity > MessageSeverity.INFO){
|
||||
notification.cancel = function(){
|
||||
dialogService.dismiss();
|
||||
}
|
||||
};
|
||||
dialogService.showBlockingMessage(notification);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
return BannerController;
|
||||
});
|
@ -28,6 +28,7 @@
|
||||
"depends": [
|
||||
"$scope",
|
||||
"$timeout",
|
||||
"$log",
|
||||
"notificationService"
|
||||
]
|
||||
}
|
||||
|
@ -26,13 +26,13 @@ define(
|
||||
function (MessageSeverity) {
|
||||
"use strict";
|
||||
|
||||
function NotificationLaunchController($scope, $timeout, notificationService) {
|
||||
function NotificationLaunchController($scope, $timeout, $log, notificationService) {
|
||||
var messageCounter = 1;
|
||||
$scope.newSuccess = function(){
|
||||
|
||||
notificationService.info({
|
||||
title: "Success notification!"
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
function getExampleActionText() {
|
||||
@ -90,7 +90,7 @@ define(
|
||||
primaryAction: {
|
||||
label: 'Retry',
|
||||
action: function() {
|
||||
console.log('Retry clicked');
|
||||
$log.info('Retry clicked');
|
||||
}
|
||||
},
|
||||
actions: getExampleActions()});
|
||||
@ -105,7 +105,7 @@ define(
|
||||
primaryAction: {
|
||||
label: 'Retry',
|
||||
action: function() {
|
||||
console.log('Retry clicked');
|
||||
$log.info('Retry clicked');
|
||||
}
|
||||
},
|
||||
actions: getExampleActions()});
|
||||
@ -127,7 +127,7 @@ define(
|
||||
notification.progressText = ["Estimated time remaining:" +
|
||||
" about ", 60 - Math.floor((notification.progress / 100) * 60), " seconds"].join(" ");
|
||||
if (notification.progress < 100) {
|
||||
$timeout(function(){incrementProgress(notification)}, 1000);
|
||||
$timeout(function(){incrementProgress(notification);}, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user