File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
extensions/ql-vscode/src/view/data-extensions-editor Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -170,10 +170,12 @@ export const LibraryRow = ({
170170 Model with AI
171171 </ VSCodeButton >
172172 ) }
173- < VSCodeButton appearance = "icon" onClick = { handleModelFromSource } >
174- < Codicon name = "code" label = "Model from source" />
175- Model from source
176- </ VSCodeButton >
173+ { viewState . mode === Mode . Application && (
174+ < VSCodeButton appearance = "icon" onClick = { handleModelFromSource } >
175+ < Codicon name = "code" label = "Model from source" />
176+ Model from source
177+ </ VSCodeButton >
178+ ) }
177179 { viewState . enableFrameworkMode &&
178180 viewState . mode === Mode . Application && (
179181 < VSCodeButton appearance = "icon" onClick = { handleModelDependency } >
You can’t perform that action at this time.
0 commit comments