Skip to content

Commit

Permalink
handle interaction tab correctly in genome_list viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoo committed May 28, 2020
1 parent 8a23791 commit 7f6eb2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions public/js/p3/widget/viewer/_GenomeList.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ define([
case 'genomes':
activeTab.set('state', lang.mixin({}, this.state, { hashParams: lang.mixin({}, this.state.hashParams) }));
break;
case 'interactions':
if (this.state.genome_ids) {
var genome_ids = this.state.genome_ids;
var searchStr = (genome_ids.length > 0) ? 'or(in(genome_id_a,(' + genome_ids.join(',') + ')),in(genome_id_b,(' + genome_ids.join(',') + ')))' : 'eq(genome_id_a,NONE)';
activeTab.set('state', lang.mixin({}, this.state, {
search: searchStr
}));
}
break;
default:
var activeQueryState;
var prop = 'genome_id';
Expand Down

0 comments on commit 7f6eb2f

Please sign in to comment.