Skip to content

Commit

Permalink
Form validation now shows toast messages vs javascript alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
jorvis committed Jan 14, 2024
1 parent c6e53fd commit 1e404d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,13 @@ const validateExpressionSearchForm = () => {
// User must have either selected a gene list or entered genes manually. Either of these
// will populate the selected_genes array
if (selected_genes.length === 0) {
alert('Please enter at least one gene to proceed');
createToast('Please enter at least one gene to proceed');
return false;
}

// Check if the user has selected any dataset collections
if (selected_dc_share_id === null) {
alert('Please select at least one dataset to proceed');
createToast('Please select at least one dataset to proceed');
return false;
}

Expand Down

0 comments on commit 1e404d6

Please sign in to comment.