We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa86790 commit a46b732Copy full SHA for a46b732
packages/vscode-extension/src/webview/components/InspectDataMenu.tsx
@@ -122,6 +122,8 @@ export function InspectDataMenu({
122
store$.license.featuresAvailability.RadonAI.get() === FeatureAvailabilityStatus.AVAILABLE
123
);
124
125
+ const displayAIButton = radonAIEnabled && inspectedItems.length > 0;
126
+
127
return (
128
<DropdownMenu.Root
129
defaultOpen={true}
@@ -169,7 +171,7 @@ export function InspectDataMenu({
169
171
</DropdownMenu.Label>
170
172
</DropdownMenu.Item>
173
)}
- {radonAIEnabled && (
174
+ {displayAIButton && (
175
<DropdownMenu.Item
176
className="inspect-data-menu-item inspector-button"
177
key={"ask-ai"}
0 commit comments