[API] Show dialog from toolbar

This commit is contained in:
Victor Woeltjen
2016-06-17 13:51:15 -07:00
parent e4a4704baa
commit b6a8c514aa
4 changed files with 47 additions and 3 deletions

View File

@ -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');