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

@@ -42,7 +42,15 @@ class SettingsButton extends AbstractButton<Props, *> {
_handleClick() {
const {
defaultTab = SETTINGS_TABS.DEVICES,
dispatch } = this.props;
dispatch,
handleClick
} = this.props;
if (handleClick) {
handleClick();
return;
}
sendAnalytics(createToolbarEvent('settings'));
dispatch(openSettingsDialog(defaultTab));