File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/base/src/panelview Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 33 IJGISFormSchemaRegistry ,
44 IJupyterGISModel ,
55} from '@jupytergis/schema' ;
6+ import { PageConfig } from '@jupyterlab/coreutils' ;
67import * as React from 'react' ;
78
89import { AnnotationsPanel } from './annotationPanel' ;
@@ -22,12 +23,17 @@ interface IRightPanelProps {
2223}
2324
2425export const RightPanel : React . FC < IRightPanelProps > = props => {
26+ const hideAnnotationPanel =
27+ PageConfig . getOption ( 'HIDE_ANNOTATION_PANEL' ) === 'true' ;
28+
2529 const [ selectedObjectProperties , setSelectedObjectProperties ] =
2630 React . useState ( undefined ) ;
2731
2832 const tabInfo = [
2933 { name : 'objectProperties' , title : 'Object Properties' } ,
30- { name : 'annotations' , title : 'Annotations' } ,
34+ ...( hideAnnotationPanel
35+ ? [ ]
36+ : [ { name : 'annotations' , title : 'Annotations' } ] ) ,
3137 { name : 'identifyPanel' , title : 'Identify Features' } ,
3238 ] ;
3339
You can’t perform that action at this time.
0 commit comments