mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
[Frontend] Sanding/positioning and Cancel button added to Messasges dialog
open #159 open #170 Added Cancel button to Messages dialog in DialogService.js; Important tweaks to layout of messages to allow bottom-bar to align to bottom in singleton dialog view; Revised status colors in theme's constants files;
This commit is contained in:
@ -240,7 +240,7 @@ define(
|
||||
// will handle actual insertion into the DOM
|
||||
this.overlay = this.overlayService.createOverlay(
|
||||
"overlay-blocking-message",
|
||||
{dialog: dialogModel},
|
||||
{ dialog: dialogModel },
|
||||
"t-dialog-sm"
|
||||
);
|
||||
this.dialogVisible = true;
|
||||
@ -254,12 +254,25 @@ define(
|
||||
};
|
||||
|
||||
DialogService.prototype.showMessageList = function(dialogModel) {
|
||||
var self = this;
|
||||
|
||||
// Cancel function; this will be passed in to the
|
||||
// overlay-dialog template and associated with a
|
||||
// Cancel or X button click
|
||||
function cancel() {
|
||||
//deferred.reject(); // Not sure what this does
|
||||
self.dismiss();
|
||||
}
|
||||
|
||||
if (this.canShowDialog(dialogModel)) {
|
||||
// Add the overlay using the OverlayService, which
|
||||
// will handle actual insertion into the DOM
|
||||
this.overlay = this.overlayService.createOverlay(
|
||||
"overlay-message-list",
|
||||
{dialog: dialogModel},
|
||||
{
|
||||
dialog: dialogModel,
|
||||
cancel: cancel
|
||||
},
|
||||
"t-dialog"
|
||||
);
|
||||
this.dialogVisible = true;
|
||||
|
Reference in New Issue
Block a user