@@ -429,7 +429,7 @@ <h5 class="step-title">Aggregation algorithm</h5>
429
429
< div id ="expert-container " class ="col-md-12 " style ="display: none ">
430
430
< div class ="form-group row container-shadow tiny grey ">
431
431
< h5 class ="step-number "> Participants < i class ="fa fa-users "> </ i >
432
- < input type ="checkbox " id ="participants-lock " onchange ="lock('rounds', 'loggingLevel', checked) " style ="display: none; ">
432
+ < input type ="checkbox " id ="participants-lock " onchange ="lock('rounds', 'loggingLevel', 'reportingSwitch', checked) " style ="display: none; ">
433
433
< label for ="participants-lock " class ="icon-container " style ="float: right; ">
434
434
< i class ="fa fa-lock "> </ i >
435
435
</ label >
@@ -447,6 +447,10 @@ <h5 class="step-title">Logging</h5>
447
447
< option value ="true " selected > Alerts and logs</ option >
448
448
</ select >
449
449
</ div >
450
+ < h5 class ="step-title "> Reporting</ h5 >
451
+ < div class ="form-check form-switch " style ="margin-left: 23px; ">
452
+ < input class ="form-check-input " type ="checkbox " id ="reportingSwitch " checked ="true " style ="display: inline; width: 80px; height: 30px; ">
453
+ </ div >
450
454
< h5 class ="step-title "> Individual participants</ h5 >
451
455
< div id ="participant-items " class ="row "> </ div >
452
456
</ div >
@@ -1041,6 +1045,7 @@ <h5 class="step-title">Schema of deployment</h5>
1041
1045
// Step 8
1042
1046
data [ "rounds" ] = document . getElementById ( "rounds" ) . value
1043
1047
data [ "logginglevel" ] = document . getElementById ( "loggingLevel" ) . value === "true"
1048
+ data [ "report_status_data_queue" ] = document . getElementById ( "reportingSwitch" ) . checked
1044
1049
// Step 9
1045
1050
data [ "accelerator" ] = document . getElementById ( "resourceUsage" ) . value
1046
1051
// Step 10-11
@@ -1137,6 +1142,12 @@ <h5 class="step-title">Schema of deployment</h5>
1137
1142
// Step 8
1138
1143
document . getElementById ( "rounds" ) . value = data [ "rounds" ] ;
1139
1144
document . getElementById ( "loggingLevel" ) . value = data [ "logginglevel" ] ? "true" : "false" ;
1145
+ document . getElementById ( "reportingSwitch" ) . checked = data [ "report_status_data_queue" ] ? true : false ;
1146
+ if ( data [ "n_nodes" ] > 10 ) {
1147
+ document . getElementById ( "reportingSwitch" ) . disabled = true ;
1148
+ } else {
1149
+ document . getElementById ( "reportingSwitch" ) . disabled = false ;
1150
+ }
1140
1151
// Step 9
1141
1152
document . getElementById ( "resourceUsage" ) . value = data [ "accelerator" ] ;
1142
1153
// Step 10-11
@@ -2421,6 +2432,14 @@ <h5 class="step-title">Schema of deployment</h5>
2421
2432
}
2422
2433
}
2423
2434
2435
+ if ( document . getElementById ( "predefined-topology-nodes" ) . value > 10 ) {
2436
+ document . getElementById ( "reportingSwitch" ) . checked = false ;
2437
+ document . getElementById ( "reportingSwitch" ) . disabled = true ;
2438
+ } else {
2439
+ document . getElementById ( "reportingSwitch" ) . checked = true ;
2440
+ document . getElementById ( "reportingSwitch" ) . disabled = false ;
2441
+ }
2442
+
2424
2443
// Update the graph
2425
2444
updateGraph ( ) ;
2426
2445
0 commit comments