(core) Fix reporting of errors to HelpScout using "Report a problem" link.

Summary:
Error notifications include a "Report a problem" link, but the inclusion of
error message and stack trace was broken.

Test Plan: Tested manually and added a test case.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2911
This commit is contained in:
Dmitry S
2021-07-13 10:11:25 -04:00
parent 09b4aaa90e
commit 0a0e320ca8
2 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ function buildAction(action: NotifyAction, item: Notification, options: IBeaconO
{href: urlState().makeUrl({billing: 'billing'})});
case 'report-problem':
return cssToastAction('Report a problem',
return cssToastAction('Report a problem', testId('toast-report-problem'),
dom.on('click', () => beaconOpenMessage({...options, includeAppErrors: true})));
case 'ask-for-help': {