Skip to content

Commit

Permalink
Merge pull request #896 from aanil/queues_update
Browse files Browse the repository at this point in the history
Hide single cell udf options if the project is not single cell
  • Loading branch information
aanil authored Nov 8, 2024
2 parents 29dd9b1 + 3d37510 commit 9731aa6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions run_dir/design/project_samples.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ <h4>Key Project Information</h4>
<dt>Library Method</dt> <dd id="library_construction_method">-</dd>
<dt>Library Prep Option</dt> <dd id="library_prep_option">-</dd>
<dt>BioAnalyzer Run Required</dt> <dd id="bioanalyzer_run_required">-</dd>
<dt>SC prep option (Hashing)</dt> <dd><span id="library_prep_option_single_cell_(hashing)">-</span></dd>
<dt>SC prep option (CITE)</dt> <dd><span id="library_prep_option_single_cell_(cite)">-</span></dd>
<dt>SC prep option (VDJ)</dt> <dd><span id="library_prep_option_single_cell_(vdj)">-</span></dd>
<dt>SC prep option (Feature)</dt> <dd><span id="library_prep_option_single_cell_(feature)">-</span></dd>
<dt hidden class="single_cell_udf">SC prep option (Hashing)</dt> <dd hidden class="single_cell_udf"><span id="library_prep_option_single_cell_(hashing)">-</span></dd>
<dt hidden class="single_cell_udf">SC prep option (CITE)</dt> <dd hidden class="single_cell_udf"><span id="library_prep_option_single_cell_(cite)">-</span></dd>
<dt hidden class="single_cell_udf">SC prep option (VDJ)</dt> <dd hidden class="single_cell_udf"><span id="library_prep_option_single_cell_(vdj)">-</span></dd>
<dt hidden class="single_cell_udf">SC prep option (Feature)</dt> <dd hidden class="single_cell_udf"></dd><span id="library_prep_option_single_cell_(feature)">-</span></dd>
<dt>Last updated</dt> <dd><span id="last_update"></span></dd>
</dl>
<hr>
Expand Down
7 changes: 7 additions & 0 deletions run_dir/static/js/project_samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,13 @@ function load_all_udfs(){
$('#loading_spinner').hide();
$('#page_content').show();

// Display hidden single cell section if application is single cell
let application = 'application' in data ? data['application'] : '';

if(application.includes('single cell')){
$('.single_cell_udf').removeAttr('hidden');
}

// Project not found
if(Object.getOwnPropertyNames(data).length == 0){
$('#page_content').html('<h1>Error - Project Not Found</h1><div class="alert alert-danger">Oops! Sorry about that, we can\'t find the project <strong>'+project+'</strong></div>');
Expand Down

0 comments on commit 9731aa6

Please sign in to comment.