Skip to content

Commit

Permalink
Adding some debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
dasunpubudumal committed Oct 31, 2024
1 parent 6c83c2b commit 285e947
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/receptacles/new_request.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,12 @@
setFlowcellTypeRequiredForNovaseq = function() {
var selected_request_type_id = $('option:selected', request_type_element).attr('value');
var flowcell_type = $('#request_request_metadata_attributes_requested_flowcell_type');
console.log('Selected request type: ' + selected_request_type_id + ' Flowcell type: ' + flowcell_type);
if(flowcell_type && flowcell_type.length > 0) {
console.log('Setting flowcell type required for Novaseq');
var novaseq_ids = $(request_type_element).data('novaseq-ids').split(',');
flowcell_type.attr('required', novaseq_ids.includes(selected_request_type_id));
console.log('Flowcell type required: ' + flowcell_type.attr('required'));
}
}

Expand Down

0 comments on commit 285e947

Please sign in to comment.