File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
nebula/frontend/static/js/deployment Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -207,9 +207,15 @@ const MobilityManager = {
207
207
208
208
const additionalParticipantsCount = parseInt ( document . getElementById ( "additionalParticipants" ) . value ) ;
209
209
for ( let i = 0 ; i < additionalParticipantsCount ; i ++ ) {
210
- config . additionalParticipants . push ( {
211
- round : parseInt ( document . getElementById ( `roundsAdditionalParticipant${ i } ` ) . value )
212
- } ) ;
210
+ if ( document . getElementById ( "connectionDelaySwitch" ) . checked ) {
211
+ config . additionalParticipants . push ( {
212
+ round : parseInt ( document . getElementById ( "connectionDelay" ) . value )
213
+ } ) ;
214
+ } else {
215
+ config . additionalParticipants . push ( {
216
+ round : parseInt ( document . getElementById ( `roundsAdditionalParticipant${ i } ` ) . value )
217
+ } ) ;
218
+ }
213
219
}
214
220
215
221
return config ;
You can’t perform that action at this time.
0 commit comments