mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 22:28:13 +00:00
[API] Expose Dialog as constructor
...and use it that way from todo plugin
This commit is contained in:
@ -163,7 +163,7 @@ define([
|
||||
destroy: function () {}
|
||||
};
|
||||
|
||||
mct.dialog(view, "Add a Task").then(function () {
|
||||
new mct.Dialog(view, "Add a Task").show().then(function () {
|
||||
var description = $dialog.find('input').val();
|
||||
var tasks = self.mutableObject.get('tasks');
|
||||
tasks.push({ description: description });
|
||||
|
Reference in New Issue
Block a user