stopping point

This commit is contained in:
Jamie V 2025-02-12 13:37:39 -08:00
parent fffa773cdf
commit 310bd17800
3 changed files with 11 additions and 6 deletions

View File

@ -58,7 +58,7 @@ const viewsTabsMatrix = {
Browse: ['Properties', 'Annotations']
},
'Flexible Layout': {
Browse: ['Properties', 'Elements'],
Browse: ['Properties', 'Elements', 'Styles'],
Edit: ['Elements', 'Styles', 'Properties']
},
Folder: {

View File

@ -31,8 +31,9 @@ export default function ElementsViewProvider(openmct) {
canView: function (selection) {
const hasValidSelection = selection?.length;
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) {
let _destroy = null;

View File

@ -26,12 +26,16 @@ import StylesInspectorView from './StylesInspectorView.vue';
import stylesManager from './StylesManager.js';
const NON_STYLABLE_TYPES = [
'folder',
'webPage',
'clock',
'conditionSet',
'summary-widget',
'eventGenerator',
'eventGeneratorWithAcknowledge',
'example.imagery',
'folder',
'gantt-chart',
'hyperlink',
'clock'
'summary-widget',
'webPage'
];
function isLayoutObject(selection, objectType) {