File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { ChangeEvent } from 'react' ;
2
- import { useTranslator } from '../hooks' ;
2
+ import { useEventLogger , useTranslator } from '../hooks' ;
3
3
4
4
import {
5
5
Checkbox ,
@@ -13,6 +13,7 @@ export function PackageInputFolderControl(props: {
13
13
inputFile : string ;
14
14
} ) : JSX . Element {
15
15
const trans = useTranslator ( 'jupyterlab' ) ;
16
+ const log = useEventLogger ( ) ;
16
17
const inputFilePath = props . inputFile . split ( '/' ) ;
17
18
inputFilePath . pop ( ) ;
18
19
@@ -33,7 +34,14 @@ export function PackageInputFolderControl(props: {
33
34
< FormGroup >
34
35
< FormControlLabel
35
36
control = {
36
- < Checkbox onChange = { props . onChange } name = { 'packageInputFolder' } />
37
+ < Checkbox
38
+ onChange = { event => {
39
+ const checkboxEvent = event . target . checked ? 'check' : 'uncheck' ;
40
+ log ( `create-job.options.package_input_folder.${ checkboxEvent } ` ) ;
41
+ props . onChange ( event ) ;
42
+ } }
43
+ name = { 'packageInputFolder' }
44
+ />
37
45
}
38
46
label = { trans . __ ( 'Run job with input folder' ) }
39
47
aria-describedby = "jp-package-input-folder-helper-text"
You can’t perform that action at this time.
0 commit comments