mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 08:25:31 +00:00
[Edit] CreateAction needs to perform("save-as")
This commit is contained in:
parent
d1f67fd8b9
commit
d3db26499c
@ -90,9 +90,9 @@ define(
|
|||||||
if (editAction) {
|
if (editAction) {
|
||||||
return editAction.perform();
|
return editAction.perform();
|
||||||
} else if (editorCapability) {
|
} else if (editorCapability) {
|
||||||
//otherwise, use the save action
|
//otherwise, use the save as action
|
||||||
editorCapability.edit();
|
editorCapability.edit();
|
||||||
return newObject.getCapability("action").perform("save").then(onSave, onCancel);
|
return newObject.getCapability("action").perform("save-as").then(onSave, onCancel);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user