mirror of
https://github.com/nasa/openmct.git
synced 2025-05-11 13:03:03 +00:00
Fixed jslint errors
This commit is contained in:
parent
83276d70d3
commit
e3ef68bc6f
@ -130,15 +130,13 @@ define(
|
|||||||
" dialog. This dialog can be used to draw the user's" +
|
" dialog. This dialog can be used to draw the user's" +
|
||||||
" attention to an event.",
|
" attention to an event.",
|
||||||
severity: "info",
|
severity: "info",
|
||||||
options: [
|
primaryOption: {
|
||||||
{
|
|
||||||
label: "OK",
|
label: "OK",
|
||||||
callback: function () {
|
callback: function () {
|
||||||
$log.debug("OK Pressed");
|
$log.debug("OK Pressed");
|
||||||
dialogService.dismiss();
|
dialogService.dismiss();
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!dialogService.showBlockingMessage(model)) {
|
if (!dialogService.showBlockingMessage(model)) {
|
||||||
|
@ -55,7 +55,7 @@ define(
|
|||||||
notificationService.dismissOrMinimize(notification);
|
notificationService.dismissOrMinimize(notification);
|
||||||
};
|
};
|
||||||
$scope.maximize = function(notification) {
|
$scope.maximize = function(notification) {
|
||||||
if (notification.severity != "info"){
|
if (notification.severity !== "info"){
|
||||||
notification.cancel = function(){
|
notification.cancel = function(){
|
||||||
dialogService.dismiss();
|
dialogService.dismiss();
|
||||||
};
|
};
|
||||||
|
@ -137,7 +137,7 @@ define(
|
|||||||
"alert": 2,
|
"alert": 2,
|
||||||
"error": 3
|
"error": 3
|
||||||
};
|
};
|
||||||
notification.severity = notification.severity || "info"
|
notification.severity = notification.severity || "info";
|
||||||
if (notification.autoDismiss === true){
|
if (notification.autoDismiss === true){
|
||||||
notification.autoDismiss = this.DEFAULT_AUTO_DISMISS;
|
notification.autoDismiss = this.DEFAULT_AUTO_DISMISS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user