Skip to content

Commit

Permalink
notify users for selecting empty step (#1818)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
  • Loading branch information
vivek-30 and jywarren committed Feb 19, 2021
1 parent 97b4f38 commit 72175fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/lib/defaultHtmlSequencerUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('-');
Expand Down

0 comments on commit 72175fa

Please sign in to comment.