mirror of
https://github.com/nasa/openmct.git
synced 2025-02-19 17:08:17 +00:00
stopping point
This commit is contained in:
parent
fffa773cdf
commit
310bd17800
@ -58,7 +58,7 @@ const viewsTabsMatrix = {
|
|||||||
Browse: ['Properties', 'Annotations']
|
Browse: ['Properties', 'Annotations']
|
||||||
},
|
},
|
||||||
'Flexible Layout': {
|
'Flexible Layout': {
|
||||||
Browse: ['Properties', 'Elements'],
|
Browse: ['Properties', 'Elements', 'Styles'],
|
||||||
Edit: ['Elements', 'Styles', 'Properties']
|
Edit: ['Elements', 'Styles', 'Properties']
|
||||||
},
|
},
|
||||||
Folder: {
|
Folder: {
|
||||||
|
@ -31,8 +31,9 @@ export default function ElementsViewProvider(openmct) {
|
|||||||
canView: function (selection) {
|
canView: function (selection) {
|
||||||
const hasValidSelection = selection?.length;
|
const hasValidSelection = selection?.length;
|
||||||
const isOverlayPlot = selection?.[0]?.[0]?.context?.item?.type === 'telemetry.plot.overlay';
|
const isOverlayPlot = selection?.[0]?.[0]?.context?.item?.type === 'telemetry.plot.overlay';
|
||||||
|
const isFolder = selection?.[0]?.[0]?.context?.item?.type === 'folder';
|
||||||
|
|
||||||
return hasValidSelection && !isOverlayPlot;
|
return hasValidSelection && !isOverlayPlot && !isFolder;
|
||||||
},
|
},
|
||||||
view: function (selection) {
|
view: function (selection) {
|
||||||
let _destroy = null;
|
let _destroy = null;
|
||||||
|
@ -26,12 +26,16 @@ import StylesInspectorView from './StylesInspectorView.vue';
|
|||||||
import stylesManager from './StylesManager.js';
|
import stylesManager from './StylesManager.js';
|
||||||
|
|
||||||
const NON_STYLABLE_TYPES = [
|
const NON_STYLABLE_TYPES = [
|
||||||
'folder',
|
'clock',
|
||||||
'webPage',
|
|
||||||
'conditionSet',
|
'conditionSet',
|
||||||
'summary-widget',
|
'eventGenerator',
|
||||||
|
'eventGeneratorWithAcknowledge',
|
||||||
|
'example.imagery',
|
||||||
|
'folder',
|
||||||
|
'gantt-chart',
|
||||||
'hyperlink',
|
'hyperlink',
|
||||||
'clock'
|
'summary-widget',
|
||||||
|
'webPage'
|
||||||
];
|
];
|
||||||
|
|
||||||
function isLayoutObject(selection, objectType) {
|
function isLayoutObject(selection, objectType) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user