mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 16:10:23 +00:00
[API] Show dialog from toolbar
This commit is contained in:
10
src/MCT.js
10
src/MCT.js
@ -3,13 +3,15 @@ define([
|
||||
'legacyRegistry',
|
||||
'uuid',
|
||||
'./api/api',
|
||||
'text!./adapter/templates/edit-object-replacement.html'
|
||||
'text!./adapter/templates/edit-object-replacement.html',
|
||||
'./ui/Dialog'
|
||||
], function (
|
||||
EventEmitter,
|
||||
legacyRegistry,
|
||||
uuid,
|
||||
api,
|
||||
editObjectTemplate
|
||||
editObjectTemplate,
|
||||
Dialog
|
||||
) {
|
||||
function MCT() {
|
||||
EventEmitter.call(this);
|
||||
@ -83,6 +85,10 @@ define([
|
||||
});
|
||||
};
|
||||
|
||||
MCT.prototype.dialog = function (view) {
|
||||
return new Dialog(view).show();
|
||||
};
|
||||
|
||||
MCT.prototype.start = function () {
|
||||
legacyRegistry.register('adapter', this.legacyBundle);
|
||||
this.emit('start');
|
||||
|
Reference in New Issue
Block a user