File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React , { ChangeEvent } from 'react' ;
2
+
3
+ import { Checkbox , FormControlLabel , FormGroup } from '@mui/material' ;
4
+
5
+ export type MLFlowCheckboxProps = {
6
+ onChange : ( event : ChangeEvent < HTMLInputElement > ) => void ;
7
+ } ;
8
+
9
+ export function MLFlowCheckbox ( props : MLFlowCheckboxProps ) : JSX . Element {
10
+ return (
11
+ < FormGroup >
12
+ < FormControlLabel
13
+ control = { < Checkbox onChange = { props . onChange } value = { 'mlflowLogging' } /> }
14
+ label = "Log with MLFlow"
15
+ />
16
+ </ FormGroup >
17
+ ) ;
18
+ }
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import {
43
43
import { Box , Stack } from '@mui/system' ;
44
44
import { getErrorMessage } from '../util/errors' ;
45
45
import { PackageInputFolderControl } from '../components/input-folder-checkbox' ;
46
+ import { MLFlowCheckbox } from '../components/mlflow-checkbox' ;
46
47
47
48
export interface ICreateJobProps {
48
49
model : ICreateJobModel ;
@@ -511,6 +512,7 @@ export function CreateJob(props: ICreateJobProps): JSX.Element {
511
512
onChange = { handleInputChange }
512
513
inputFile = { props . model . inputFile }
513
514
/>
515
+ < MLFlowCheckbox onChange = { handleInputChange } />
514
516
< OutputFormatPicker
515
517
label = { trans . __ ( 'Output formats' ) }
516
518
name = "outputFormat"
You can’t perform that action at this time.
0 commit comments