@@ -22,11 +22,11 @@ class Duplicator extends Component {
2222 this . onChangeCheckBox = this . onChangeCheckBox . bind ( this ) ;
2323 this . closeToast = this . closeToast . bind ( this )
2424 }
25-
25+
2626 handleClose ( ) {
2727 this . setState ( { showModal : false , showModalConfirmation : false } ) ;
2828 }
29-
29+
3030 handleShow ( ) {
3131 this . setState ( { showModal : true } ) ;
3232 }
@@ -50,7 +50,7 @@ class Duplicator extends Component {
5050 const _error = ( x ) => console . error ( x . message ) ;
5151
5252 let that = this
53-
53+
5454
5555 this . state . viewpoints . forEach ( function ( viewpoint ) {
5656 db . getView ( '/viewpoint/' + viewpoint )
@@ -129,22 +129,22 @@ class Duplicator extends Component {
129129 } )
130130 }
131131
132- render ( ) {
132+ render ( ) {
133133 let name = this . props . userConnected + '-' + this . props . portfolio
134134 let corpora = this . props . corpora . map ( ( v , i ) =>
135135 < div className = 'Modal-Group' key = { v . id } >
136- < input className = 'Modal-CheckBox Corpus' value = { v . id } onChange = { this . onChangeCheckBox } type = "checkbox" />
136+ < input name = { v . id } className = 'Modal-CheckBox Corpus' value = { v . id } onChange = { this . onChangeCheckBox } type = "checkbox" />
137137 { v . id }
138138 </ div >
139139 ) ;
140140
141141 let viewpoints = this . props . viewpoints . map ( ( v , i ) =>
142142 < div className = 'Modal-Group' key = { v . id } >
143- < input className = 'Modal-CheckBox ViewPoint' value = { v . id } onChange = { this . onChangeCheckBox } type = "checkbox" />
143+ < input name = { v . name } className = 'Modal-CheckBox ViewPoint' value = { v . id } onChange = { this . onChangeCheckBox } type = "checkbox" />
144144 { v . name }
145145 </ div >
146146 ) ;
147-
147+
148148
149149 return (
150150 < div >
@@ -171,7 +171,7 @@ class Duplicator extends Component {
171171 < Modal show = { this . state . showModal } >
172172 < Modal . Body >
173173 < h3 > Nom du portfolio</ h3 >
174- < input type = 'text' className = 'Modal-Input form-control' defaultValue = { name } placeholder = 'Nom du nouveau portfolio' id = "portfolioDuplicatedName" />
174+ < input type = 'text' name = "copyName" className = 'Modal-Input form-control' defaultValue = { name } placeholder = 'Nom du nouveau portfolio' id = "portfolioDuplicatedName" />
175175 < div className = 'Modal-Group Modal-Title' >
176176 < h3 > Corpus</ h3 >
177177 < div className = 'Modal-Group' > < input className = 'Modal-CheckBox checkCorpora' type = "checkbox" onChange = { this . onChangeCheckBox } /> Tout</ div >
@@ -183,7 +183,7 @@ class Duplicator extends Component {
183183 < br />
184184 < div className = 'Modal-Group Modal-Title' >
185185 < h3 > Points de vue</ h3 >
186- < div className = 'Modal-Group' > < input className = 'Modal-CheckBox checkViewPoints' type = "checkbox" onChange = { this . onChangeCheckBox } /> Tout</ div >
186+ < div className = 'Modal-Group' > < input className = 'Modal-CheckBox checkViewPoints' name = { name } type = "checkbox" onChange = { this . onChangeCheckBox } /> Tout</ div >
187187 </ div >
188188 < hr />
189189 < div id = "viewPointsList" >
@@ -201,7 +201,7 @@ class Duplicator extends Component {
201201 </ Modal >
202202 < Dropdown . Item eventKey = "2" onClick = { this . handleShow } > Dupliquer</ Dropdown . Item >
203203 </ div >
204-
204+
205205 )
206206 }
207207}
0 commit comments