Skip to content

Commit

Permalink
chore(settings/automation-manager): fix product analytics parameters …
Browse files Browse the repository at this point in the history
…AN-23340, AN-23341
  • Loading branch information
amirch1 committed Jul 23, 2024
1 parent f812b07 commit 6a7082d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/applications/settings-mr-app/logs/logs.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<path d="M12 3C12.5128 3 12.9355 3.38604 12.9933 3.88338L13 4V11.5852L15.2929 9.29289C15.6534 8.93241 16.2206 8.90468 16.6129 9.20971L16.7071 9.2929C17.0676 9.65339 17.0953 10.2206 16.7903 10.6129L16.7071 10.7071L12.7151 14.699C12.6845 14.7304 12.6518 14.7597 12.6173 14.7868C12.5589 14.8327 12.4965 14.8713 12.4315 14.9024C12.3009 14.9649 12.1545 15 12 15L11.9845 14.9999C11.8694 14.9981 11.759 14.9769 11.6564 14.9394C11.5612 14.9047 11.4702 14.8549 11.387 14.7903L11.3856 14.789C11.3533 14.7638 11.3225 14.7367 11.2936 14.7078L11.2928 14.7071L7.29289 10.7071C6.90237 10.3166 6.90237 9.6834 7.2929 9.29289C7.65339 8.93241 8.22062 8.90468 8.61291 9.20971L8.70711 9.2929L11 11.5852V4C11 3.44772 11.4477 3 12 3Z" fill="#006EFA"/>
<path d="M4 18C3.44772 18 3 18.4477 3 19C3 19.5523 3.44772 20 4 20H20C20.5523 20 21 19.5523 21 19C21 18.4477 20.5523 18 20 18H4Z" fill="#006EFA"/>
</svg>
<a class="kLink" (click)="download(report.id)">
<a class="kLink" (click)="download(report.id, getType(report.type))">
{{'applications.settings.mr.report.download' | translate}}
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/applications/settings-mr-app/logs/logs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ export class LogsComponent implements OnInit {
}
}

public download(id: string): void {
public download(id: string, type: string): void {
this._isBusy = true;
this._analytics.trackButtonClickEvent(ButtonType.Download, 'AM_download_report', null, 'Automation_manager');
this._analytics.trackButtonClickEvent(ButtonType.Download, 'AM_download_report', type, 'Automation_manager');
this._mrStore.downloadReport(id).subscribe(
data => {
this._isBusy = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class CriteriaOwnerComponent implements OnDestroy{
const userIds = [];
this.owners.forEach(user => userIds.push(user.id));
value[this._owner] = userIds.toString();
this._analytics.trackButtonClickEvent(ButtonType.Choose, 'AM_criteria_tags_type', this._owner === 'userIdIn' ? 'is' : 'isn’t' , 'Automation_manager');
this._analytics.trackButtonClickEvent(ButtonType.Choose, 'AM_criteria_owner_type', this._owner === 'userIdIn' ? 'is' : 'isn’t' , 'Automation_manager');
this.onFilterChange.emit({field: 'owner', value});
}

Expand Down

0 comments on commit 6a7082d

Please sign in to comment.