Commit 558d0b2 1 parent dde2257 commit 558d0b2 Copy full SHA for 558d0b2
File tree 1 file changed +8
-3
lines changed
nebula/frontend/templates
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1256,13 +1256,18 @@ <h5 class="step-title">Schema of deployment</h5>
1256
1256
1257
1257
1258
1258
//Show buttons to move through the list
1259
- if ( scenarioStorage . scenariosList . length > 1 ) {
1259
+ if ( scenarioStorage . scenariosList . length < 1 ) {
1260
+ document . getElementById ( "prev-btn" ) . style . display = "none" ;
1261
+ document . getElementById ( "run-btn" ) . disabled = true ;
1262
+ }
1263
+ else if ( scenarioStorage . scenariosList . length > 1 ) {
1260
1264
document . getElementById ( "prev-btn" ) . style . display = "inline-block" ;
1261
1265
document . getElementById ( "run-btn" ) . disabled = false ;
1262
1266
document . getElementById ( "del-btn" ) . style . display = "inline-block" ;
1263
- } else {
1267
+ } else {
1264
1268
document . getElementById ( "prev-btn" ) . style . display = "none" ;
1265
- document . getElementById ( "run-btn" ) . disabled = true ;
1269
+ document . getElementById ( "run-btn" ) . disabled = false ;
1270
+ document . getElementById ( "del-btn" ) . style . display = "inline-block" ;
1266
1271
}
1267
1272
1268
1273
document . getElementById ( "new-btn" ) . style . display = "inline-block" ;
You can’t perform that action at this time.
0 commit comments