mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
[Frontend] Message list initially working
open #159 open #170 Thank you @akhenry; launchMessages function added to DialogLaunchController.js; New message-list.html template; message.html is now its own include; blocking-message.html renamed to overlay-blocking-message.html;
This commit is contained in:
@ -239,7 +239,7 @@ define(
|
||||
// Add the overlay using the OverlayService, which
|
||||
// will handle actual insertion into the DOM
|
||||
this.overlay = this.overlayService.createOverlay(
|
||||
"blocking-message",
|
||||
"overlay-blocking-message",
|
||||
{dialog: dialogModel},
|
||||
"t-dialog-sm"
|
||||
);
|
||||
@ -253,6 +253,24 @@ define(
|
||||
|
||||
};
|
||||
|
||||
DialogService.prototype.showMessageList = function(dialogModel) {
|
||||
if (this.canShowDialog(dialogModel)) {
|
||||
// Add the overlay using the OverlayService, which
|
||||
// will handle actual insertion into the DOM
|
||||
this.overlay = this.overlayService.createOverlay(
|
||||
"message-list",
|
||||
{dialog: dialogModel},
|
||||
"t-dialog t-message-list"
|
||||
);
|
||||
this.dialogVisible = true;
|
||||
return true;
|
||||
} else {
|
||||
//Could not show a dialog, so return indication of this to
|
||||
//client code.
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
return DialogService;
|
||||
}
|
||||
|
Reference in New Issue
Block a user