Skip to content

Commit

Permalink
Wfnews 2416 - Full Details - Autofill subject line in email with fire…
Browse files Browse the repository at this point in the history
… name (#2158)

* prefill mail subject line with incident name

* prefill mail subject line with incident name
  • Loading branch information
yzlucas authored Dec 18, 2024
1 parent ee0bbb6 commit 56a0fd8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ export class ContactUsCoreComponent {
};

email = () => {
window.open('mailto:' + this.incident.contactEmailAddress, '_blank');

window.open(
'mailto:' + this.incident?.contactEmailAddress +
'?subject=' + encodeURIComponent(this.incident?.incidentName),
'_blank'
);
};

}

0 comments on commit 56a0fd8

Please sign in to comment.