Skip to content

Commit

Permalink
wc: Fix link to exit from interpreter tool #TASK-7216 #TASK-7100
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes committed Nov 27, 2024
1 parent 1ca5ac2 commit 811d816
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,10 @@ class VariantInterpreter extends LitElement {
}

renderToolbarRightContent() {
// Note: we have to maintain the URL structure, so if we are inside an app we have to maintain the app
const hashItems = window.location.hash.replace("#", "").split("/");
const exitUrl = "#" + [...hashItems.slice(0, -3), "clinical-analysis-portal", this.opencgaSession.project.id, this.opencgaSession.study.id].join("/");

return html`
<div class="d-flex align-items-center">
${this.clinicalAnalysis?.interpretation ? html`
Expand Down Expand Up @@ -492,7 +496,7 @@ class VariantInterpreter extends LitElement {
</li>
<li><hr class="dropdown-divider"></li>
<li>
<a class="dropdown-item" href="#clinicalAnalysisPortal/${this.opencgaSession.project.id}/${this.opencgaSession.study.id}">
<a class="dropdown-item" href="${exitUrl}">
<i class="fas fa-sign-out-alt pe-1"></i> Exit Interpreter
</a>
</li>
Expand Down

0 comments on commit 811d816

Please sign in to comment.