Skip to content

Commit

Permalink
Merge pull request #348 from vbakke/fix/348-modal-sideeffect
Browse files Browse the repository at this point in the history
Remove sideeffect when opening modal dialog
  • Loading branch information
wurstbrot authored Jan 13, 2025
2 parents 6a2f02d + e4a1abc commit fd118d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ <h2>Nothing to show</h2>
class="title-button"
(click)="
$event.preventDefault();
navigate(
openActivityDetails(
currentDimension,
cardHeader,
activity['activityName']
Expand Down
12 changes: 6 additions & 6 deletions src/app/component/circular-heatmap/circular-heatmap.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,21 +717,21 @@ export class CircularHeatmapComponent implements OnInit {
}
}

navigate(dim: string, subdim: string, activityName: string) {
openActivityDetails(dim: string, subdim: string, activityName: string) {
let navigationExtras = {
dimension: dim,
subDimension: subdim,
activityName: activityName,
};
this.yaml.setURI('./assets/YAML/generated/generated.yaml');
this.activityDetails = this.YamlObject[dim][subdim][activityName];
console.log(this.YamlObject);
console.log(this.YamlObject[dim][subdim]);
this.activityDetails = Object.assign(
{},
this.YamlObject[dim][subdim][activityName]
);

if (this.activityDetails) {
this.activityDetails.navigationExtras = navigationExtras;
}
console.log(this.activityDetails);
console.log(this.ALL_CARD_DATA);
this.showOverlay = true;
}

Expand Down

0 comments on commit fd118d7

Please sign in to comment.