Skip to content

Commit

Permalink
Merge branch 'master' into snyk-upgrade-e19ddd06753a27eec69d5a13d91fd0a2
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Sep 11, 2024
2 parents 2056b6d + 543bee6 commit 62ce43d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { normalizeOverviewData } from "../../utils/normalizeOverviewData";
})
export class ScenarioTrendsComponent implements OnInit {
@Input() params;
@Input() isAnonymous: boolean;
Highcharts: typeof Highcharts = Highcharts;
updateAggregatedScenarioTrendsChartFlag = false;
updateLabelScenarioTrendsChartFlag = false;
Expand Down Expand Up @@ -159,7 +160,7 @@ export class ScenarioTrendsComponent implements OnInit {
}

onPointSelect(event) {
if (event && event.point && event.point) {
if (event && event.point && !this.isAnonymous) {
// Label series have item id amended to open correct detail, it's needed for a case when a labels do not match, eg:
// label2 start at point 0, but label2 starts at point 1, it leads to off by N issues.
// It's not needed for aggregated trend chart, as that is column chart and only one point can be clicked.
Expand Down
2 changes: 1 addition & 1 deletion src/app/scenario/scenario.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div class="items-overview content-container">
<div class="container-fluid">

<app-scenario-trends [params]="params"></app-scenario-trends>
<app-scenario-trends [params]="params" [isAnonymous]="isAnonymous"></app-scenario-trends>

<div class="row rr" *ngIf="!isAnonymous">
<div class="col" *ngIf="items$ | async; let items">
Expand Down

0 comments on commit 62ce43d

Please sign in to comment.