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