@@ -137,6 +137,7 @@ export default function SyntheticDataSettings({
137137 < FormField
138138 control = { form . control }
139139 name = "file"
140+ disabled = { isLoading }
140141 render = { ( ) => (
141142 < CSVReader onChange = { onFileLoad } />
142143 ) }
@@ -182,6 +183,7 @@ export default function SyntheticDataSettings({
182183 < FormField
183184 control = { form . control }
184185 name = "sdgMethod"
186+ disabled = { isLoading }
185187 render = { ( { field } ) => (
186188 < RadioGroup
187189 onValueChange = { field . onChange }
@@ -191,7 +193,10 @@ export default function SyntheticDataSettings({
191193 >
192194 < FormItem className = "flex items-center space-x-3 space-y-0" >
193195 < FormControl >
194- < RadioGroupItem value = "cart" />
196+ < RadioGroupItem
197+ value = "cart"
198+ disabled = { isLoading }
199+ />
195200 </ FormControl >
196201 < FormLabel className = "font-normal" >
197202 { t (
@@ -201,7 +206,10 @@ export default function SyntheticDataSettings({
201206 </ FormItem >
202207 < FormItem className = "flex items-center space-x-3 space-y-0" >
203208 < FormControl >
204- < RadioGroupItem value = "gc" />
209+ < RadioGroupItem
210+ value = "gc"
211+ disabled = { isLoading }
212+ />
205213 </ FormControl >
206214 < FormLabel className = "font-normal" >
207215 { t (
@@ -243,6 +251,7 @@ export default function SyntheticDataSettings({
243251 < FormField
244252 control = { form . control }
245253 name = "nanTreatment"
254+ disabled = { isLoading }
246255 render = { ( { field } ) => (
247256 < RadioGroup
248257 onValueChange = { field . onChange }
@@ -251,7 +260,10 @@ export default function SyntheticDataSettings({
251260 >
252261 < FormItem className = "flex items-center space-x-3 space-y-0" >
253262 < FormControl >
254- < RadioGroupItem value = "drop" />
263+ < RadioGroupItem
264+ value = "drop"
265+ disabled = { isLoading }
266+ />
255267 </ FormControl >
256268 < FormLabel className = "font-normal" >
257269 { t (
@@ -261,7 +273,10 @@ export default function SyntheticDataSettings({
261273 </ FormItem >
262274 < FormItem className = "flex items-center space-x-3 space-y-0" >
263275 < FormControl >
264- < RadioGroupItem value = "impute" />
276+ < RadioGroupItem
277+ value = "impute"
278+ disabled = { isLoading }
279+ />
265280 </ FormControl >
266281 < FormLabel className = "font-normal" >
267282 { t (
@@ -288,6 +303,7 @@ export default function SyntheticDataSettings({
288303 step = { 10 }
289304 onValueChange = { value => setOutputSamples ( value ) }
290305 className = "cursor-pointer"
306+ disabled = { isLoading }
291307 />
292308 </ div >
293309 </ fieldset >
0 commit comments