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'] Browse: ['Properties', 'Annotations']
}, },
'Flexible Layout': { 'Flexible Layout': {
Browse: ['Properties', 'Elements'], Browse: ['Properties', 'Elements', 'Styles'],
Edit: ['Elements', 'Styles', 'Properties'] Edit: ['Elements', 'Styles', 'Properties']
}, },
Folder: { Folder: {

View File

@ -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;

View File

@ -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) {