Skip to content

Commit

Permalink
fixing this up
Browse files Browse the repository at this point in the history
  • Loading branch information
moriondo2022 committed Dec 11, 2024
1 parent 6fde0c5 commit 17804da
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
17 changes: 12 additions & 5 deletions src/views/PIGEAN/Gene/Template.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,14 @@
@dotHovered="(dot) => $parent.showLink(dot)"
>
</pigean-plot>
<p> View phenotype:
<a :href="$parent.phenotypeLinkAddress"
v-html="$parent.phenotypeLinkText">
</a>
</p>
<div id="pigean-hover-link">
<p v-if="!!$parent.phenotypeLinkAddress">
View phenotype:
<a :href="$parent.phenotypeLinkAddress"
v-html="$parent.phenotypeLinkText">
</a>
</p>
</div>
</div>
</div>
<div class="card-body pigean-table">
Expand Down Expand Up @@ -253,4 +256,8 @@
.card-body.pigean-table {
padding-top: 0;
}
#pigean-hover-link{
padding-left: 25px;
}
</style>
3 changes: 2 additions & 1 deletion src/views/PIGEAN/Gene/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ new Vue({
return "";
}
return `/pigean/phenotype.html?phenotype=${this.hoverPhenotype
}&genesetSize=${this.genesetSize}&traitGroup=${this.traitGroup}`;
}&genesetSize=${this.$store.state.genesetSize}&traitGroup=${
this.$store.state.traitGroup}`;
},
phenotypeLinkText(){
return this.pigeanMap[this.hoverPhenotype]?.description || this.hoverPhenotype;
Expand Down

0 comments on commit 17804da

Please sign in to comment.