mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
remove is editing checks from toolbar providers since is editing is being checked by layout (#2314)
This commit is contained in:
committed by
Pegah Sarram
parent
0f2918efaf
commit
350d3c92e7
@ -28,9 +28,9 @@ define([], function () {
|
||||
key: "layout",
|
||||
description: "A toolbar for objects inside a display layout.",
|
||||
forSelection: function (selection) {
|
||||
// Apply the layout toolbar if the edit mode is on, and the selected object
|
||||
// Apply the layout toolbar if the selected object
|
||||
// is inside a layout, or the main layout is selected.
|
||||
return (openmct.editor.isEditing() && selection &&
|
||||
return (selection &&
|
||||
((selection[1] && selection[1].context.item && selection[1].context.item.type === 'layout') ||
|
||||
(selection[0].context.item && selection[0].context.item.type === 'layout')));
|
||||
},
|
||||
|
Reference in New Issue
Block a user