mirror of
https://github.com/nasa/openmct.git
synced 2025-06-12 20:28:14 +00:00
[Common UI] Fill in dialog specs
Fill in specs for bundle platform/commonUI/dialog, which provides the ability to show dialogs. One of the common user interface elements being transitioned for WTD-574.
This commit is contained in:
@ -40,11 +40,7 @@ define(
|
||||
|
||||
// Temporary workaround, in the absence of a
|
||||
// forms package.
|
||||
try {
|
||||
resultingValue = JSON.parse(overlayModel.value);
|
||||
} catch (e) {
|
||||
resultingValue = {};
|
||||
}
|
||||
resultingValue = JSON.parse(overlayModel.value);
|
||||
|
||||
// Pass along the result
|
||||
deferred.resolve(resultingValue);
|
||||
@ -89,6 +85,10 @@ define(
|
||||
overlayModel,
|
||||
"overlay-dialog"
|
||||
);
|
||||
|
||||
// Track that a dialog is already visible, to
|
||||
// avoid spawning multiple dialogs at once.
|
||||
dialogVisible = true;
|
||||
}
|
||||
|
||||
return deferred.promise;
|
||||
|
Reference in New Issue
Block a user