mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +00:00
[API] Update Dialog API usage
This commit is contained in:
parent
93872ce074
commit
2463e4d59f
@ -29,11 +29,10 @@ define([
|
|||||||
if (definitions.length > 0) {
|
if (definitions.length > 0) {
|
||||||
action.dialogService = Object.create(action.dialogService);
|
action.dialogService = Object.create(action.dialogService);
|
||||||
action.dialogService.getUserInput = function (form, value) {
|
action.dialogService.getUserInput = function (form, value) {
|
||||||
mct.dialog(
|
return new mct.Dialog(
|
||||||
definitions[0].view(context.domainObject),
|
definitions[0].view(context.domainObject),
|
||||||
form.title
|
form.title
|
||||||
);
|
).show();
|
||||||
return Promise.resolve(value);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user