notify users for selecting empty step (#1818)

Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
This commit is contained in:
Vivek Singh
2021-02-19 20:56:05 +05:30
committed by GitHub
parent 97b4f38db3
commit 72175fa789

View File

@@ -47,7 +47,12 @@ function DefaultHtmlSequencerUi(_sequencer, options) {
}
function addStepUi() {
if ($(addStepSel + ' select').val() == 'none') return;
if ($(addStepSel + ' select').val() == ''){
alert('Please Select a Step to Proceed');
return;
}
var newStepName;
if(typeof arguments[0] !== 'string')
newStepName = $(addStepSel + ' select option').html().toLowerCase().split(' ').join('-');