Skip to content

Commit

Permalink
Update scenario parameter in comparison link
Browse files Browse the repository at this point in the history
Replaced `params.scenarioName` with `selectedScenario` to ensure the correct scenario is referenced in the comparison report link. This change will prevent potential mismatches and ensure users are directed to the accurate scenario report.
  • Loading branch information
ludeknovy committed Sep 14, 2024
1 parent ea8ab66 commit 6ebdc8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<span class="compare-menu-item"> Compare To Baseline</span>
</button>
<button *ngIf="comparingData" class="btn btn-sm" (click)="resetStatsData()" ngbDropdownItem><i class="fas fa-undo-alt"></i><span class="compare-menu-item"> Remove Comparison</span></button>
<a *ngIf="comparingData" class="btn btn-sm" ngbDropdownItem target="_blank" href="/project/{{params.projectName}}/scenario/{{params.scenarioName}}/item/{{comparedMetadata.id}}"><i class="fas fa-external-link-alt"></i><span class="compare-menu-item"> Open Comparing Report</span></a>
<a *ngIf="comparingData" class="btn btn-sm" ngbDropdownItem target="_blank" href="/project/{{params.projectName}}/scenario/{{selectedScenario}}/item/{{comparedMetadata.id}}"><i class="fas fa-external-link-alt"></i><span class="compare-menu-item"> Open Comparing Report</span></a>
</div>
</div>

Expand Down

0 comments on commit 6ebdc8f

Please sign in to comment.