mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +00:00
Tweaked object creation
This commit is contained in:
parent
708aa7dcba
commit
322db5a0f5
@ -98,7 +98,7 @@ define(
|
||||
model.location = parentObject.getId();
|
||||
});
|
||||
|
||||
if (countEditableViews(editableObject) > 0) {
|
||||
if (countEditableViews(editableObject) > 0 && editableObject.hasCapability('composition')) {
|
||||
this.navigationService.setNavigation(editableObject);
|
||||
} else {
|
||||
return editableObject.getCapability('action').perform('save');
|
||||
|
Loading…
x
Reference in New Issue
Block a user