File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
app/javascript/components/service-dialog-form/edit-field-modal Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 77} from './fields.schema' ;
88
99const fields = ( tab ) => tab . fields . map ( ( item ) => {
10- console . log ( item ) ;
1110 switch ( item . field ) {
1211 case componentTypes . TEXT_FIELD :
1312 return textFieldComponent ( item ) ;
Original file line number Diff line number Diff line change @@ -4,21 +4,21 @@ export const textFieldComponent = (field) => ({
44 component : componentTypes . TEXT_FIELD ,
55 label : field . label ,
66 maxLength : 128 ,
7- id : 'options.name' ,
7+ id : field . label ,
88 name : field . label ,
99} ) ;
1010
1111export const textAreaComponent = ( field ) => ( {
1212 component : componentTypes . TEXTAREA ,
13- id : 'public_key' ,
13+ id : field . label ,
1414 name : field . label ,
1515 label : field . label ,
1616 rows : 10 ,
1717} ) ;
1818
1919export const switchComponent = ( field ) => ( {
2020 component : componentTypes . SWITCH ,
21- id : 'incremental' ,
21+ id : field . label ,
2222 name : field . label ,
2323 label : field . label ,
2424 maxLength : 50 ,
@@ -34,7 +34,7 @@ const assignProfiles = [
3434
3535export const selectComponent = ( field ) => ( {
3636 component : componentTypes . SELECT ,
37- id : 'options.scan_item_set_name' ,
37+ id : field . label ,
3838 name : field . label ,
3939 label : field . label ,
4040 placeholder : __ ( '<Choose>' ) ,
You can’t perform that action at this time.
0 commit comments