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 551bb4c commit 7f6e819Copy full SHA for 7f6e819
src/extension/ui/src/components/tile/ConfigEditor.tsx
@@ -78,6 +78,9 @@ const ConfigEditor = ({
78
return null;
79
}
80
81
+ const schema = new JsonSchemaLibrary.Draft2019(catalogItem.config[0]);
82
+ const requiredAttributes = (schema.rootSchema.required || []) as string[];
83
+
84
return (
85
<Stack spacing={1}>
86
<Typography variant="subtitle2">Parameters</Typography>
@@ -97,7 +100,7 @@ const ConfigEditor = ({
97
100
<TextField
98
101
fullWidth
99
102
size="small"
- label={key}
103
+ label={`${key} ${requiredAttributes.includes(key) ? ' (required)' : ''}`}
104
value={localConfig[key]}
105
onChange={(e) =>
106
setLocalConfig({ ...localConfig, [key]: e.target.value })
0 commit comments