diff --git a/app/gui2/src/components/visualizations/JSONVisualization.vue b/app/gui2/src/components/visualizations/JSONVisualization.vue index 91cbd3ee0a4..4a4b6c7a152 100644 --- a/app/gui2/src/components/visualizations/JSONVisualization.vue +++ b/app/gui2/src/components/visualizations/JSONVisualization.vue @@ -17,6 +17,10 @@ const config = useVisualizationConfig() type ConstructivePattern = (placeholder: Ast.Owned) => Ast.Owned +const JSON_OBJECT_TYPE = 'Standard.Base.Data.Json.JS_Object' + +const isClickThroughEnabled = config.nodeType === JSON_OBJECT_TYPE + function projector(parentPattern: ConstructivePattern | undefined) { const style = { spaced: parentPattern !== undefined, @@ -53,7 +57,11 @@ function createProjection(path: (string | number)[][]) { @@ -63,4 +71,7 @@ function createProjection(path: (string | number)[][]) { font-family: var(--font-mono); padding: 8px; } +.viewonly { + pointer-events: none; +}