diff --git a/platform/commonUI/edit/src/actions/SaveAsAction.js b/platform/commonUI/edit/src/actions/SaveAsAction.js index a00869eedb..a2091821eb 100644 --- a/platform/commonUI/edit/src/actions/SaveAsAction.js +++ b/platform/commonUI/edit/src/actions/SaveAsAction.js @@ -169,15 +169,17 @@ function ( } function saveAfterClone(clonedObject) { - return domainObject.getCapability("editor").save() - .then(resolveWith(clonedObject)); + return this.openmct.editor.save().then(() => { + // Force mutation for search indexing + clonedObject.useCapability('mutation', (model) => { + return model; + }); + return clonedObject; + }) } function finishEditing(clonedObject) { - return domainObject.getCapability("editor").finish() - .then(function () { - return fetchObject(clonedObject.getId()); - }); + return fetchObject(clonedObject.getId()) } function onSuccess(object) { diff --git a/platform/commonUI/edit/src/creation/CreateAction.js b/platform/commonUI/edit/src/creation/CreateAction.js index 3252f6a64c..1caa91cf75 100644 --- a/platform/commonUI/edit/src/creation/CreateAction.js +++ b/platform/commonUI/edit/src/creation/CreateAction.js @@ -65,11 +65,10 @@ define( CreateAction.prototype.perform = function () { var newModel = this.type.getInitialModel(), openmct = this.openmct, - newObject, - editAction; + newObject; function onSave() { - openmct.editor.save(); + // openmct.editor.save(); } function onCancel() { @@ -81,7 +80,6 @@ define( newObject = this.parent.useCapability('instantiation', newModel); openmct.editor.edit(); - editAction = newObject.getCapability("action").getActions("edit")[0]; newObject.getCapability("action").perform("save-as").then(onSave, onCancel); // TODO: support editing object without saving object first. // Which means we have to toggle createwizard afterwards. For now, diff --git a/src/ui/layout/Layout.vue b/src/ui/layout/Layout.vue index e7f5b108e3..bf96d212fd 100644 --- a/src/ui/layout/Layout.vue +++ b/src/ui/layout/Layout.vue @@ -22,9 +22,6 @@ handle="after" label="Browse" collapsable> -