mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
[Frontend] Mods to OverlayService
open #159 open #170 OverlayService can now be passed typeClass, which is added to the CSS class of the overlay's mct-include tag - intent is to allow the overlay to size itself based on the type of content to be displayed;
This commit is contained in:
@ -89,7 +89,8 @@ define(
|
||||
// will handle actual insertion into the DOM
|
||||
this.overlay = this.overlayService.createOverlay(
|
||||
key,
|
||||
model
|
||||
model,
|
||||
"t-dialog"
|
||||
);
|
||||
|
||||
// Track that a dialog is already visible, to
|
||||
@ -230,6 +231,7 @@ define(
|
||||
* progress, as well as a series of actions that
|
||||
* the user can take if necessary
|
||||
* @param {DialogModel} dialogModel defines options for the dialog
|
||||
* @param {typeClass} string tells overlayService that this overlay should use appropriate CSS class
|
||||
* @returns {boolean}
|
||||
*/
|
||||
DialogService.prototype.showBlockingMessage = function(dialogModel) {
|
||||
@ -238,7 +240,8 @@ define(
|
||||
// will handle actual insertion into the DOM
|
||||
this.overlay = this.overlayService.createOverlay(
|
||||
"blocking-message",
|
||||
{dialog: dialogModel}
|
||||
{dialog: dialogModel},
|
||||
"t-dialog-sm"
|
||||
);
|
||||
this.dialogVisible = true;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user