feat(toolbar-buttons): Add event for notify overwritten toolbar buttons

This commit is contained in:
Horatiu Muresan
2021-09-14 10:07:20 +03:00
parent dbecd8cdb2
commit ae3d8faf70
38 changed files with 382 additions and 71 deletions

View File

@@ -33,8 +33,16 @@ class HelpButton extends AbstractButton<Props, *> {
* @returns {void}
*/
_handleClick() {
const { _userDocumentationURL, handleClick } = this.props;
if (handleClick) {
handleClick();
return;
}
sendAnalytics(createToolbarEvent('help.pressed'));
openURLInBrowser(this.props._userDocumentationURL);
openURLInBrowser(_userDocumentationURL);
}
}