mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
Addressed code review points
This commit is contained in:
parent
26e368f52d
commit
8c3616da32
@ -103,7 +103,7 @@ define(
|
|||||||
if (countEditableViews(editableObject) > 0 && editableObject.hasCapability('composition')) {
|
if (countEditableViews(editableObject) > 0 && editableObject.hasCapability('composition')) {
|
||||||
this.navigationService.setNavigation(editableObject);
|
this.navigationService.setNavigation(editableObject);
|
||||||
} else {
|
} else {
|
||||||
return editableObject.getCapability('action').perform('save-as');
|
return editableObject.getCapability('action').perform('save');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -171,10 +171,10 @@ define([
|
|||||||
"priority": "mandatory"
|
"priority": "mandatory"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "save-as",
|
"key": "save",
|
||||||
"category": "conclude-editing",
|
"category": "conclude-editing",
|
||||||
"implementation": SaveAsAction,
|
"implementation": SaveAsAction,
|
||||||
"name": "Save As",
|
"name": "Save",
|
||||||
"description": "Save changes made to these objects.",
|
"description": "Save changes made to these objects.",
|
||||||
"depends": [
|
"depends": [
|
||||||
"$injector",
|
"$injector",
|
||||||
|
Loading…
Reference in New Issue
Block a user