mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 08:25:31 +00:00
Remove Go To Original when in edit mode (#5966)
Co-authored-by: David Tsay <3614296+davetsay@users.noreply.github.com>
This commit is contained in:
parent
0dfc028e1b
commit
189c58f952
@ -45,6 +45,10 @@ export default class GoToOriginalAction {
|
||||
});
|
||||
}
|
||||
appliesTo(objectPath) {
|
||||
if (this._openmct.editor.isEditing()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let parentKeystring = objectPath[1] && this._openmct.objects.makeKeyString(objectPath[1].identifier);
|
||||
|
||||
if (!parentKeystring) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user