mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 08:39:59 +00:00
Tweaked object creation
This commit is contained in:
@ -98,7 +98,7 @@ define(
|
|||||||
model.location = parentObject.getId();
|
model.location = parentObject.getId();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (countEditableViews(editableObject) > 0) {
|
if (countEditableViews(editableObject) > 0 && editableObject.hasCapability('composition')) {
|
||||||
this.navigationService.setNavigation(editableObject);
|
this.navigationService.setNavigation(editableObject);
|
||||||
} else {
|
} else {
|
||||||
return editableObject.getCapability('action').perform('save');
|
return editableObject.getCapability('action').perform('save');
|
||||||
|
Reference in New Issue
Block a user