Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} else {
this.setState({loadingMessage: gse.progress.status});
}
});
call.on('end', () => {
if (DEBUG) console.log('doGeneSetEnrichment end');
ReactGA.event({
category: 'geneset',
action: 'enrichment finished',
nonInteraction: true
});
});
}, () => {
BackendAPI.showError();
})
ReactGA.event({
category: 'geneset',
action: 'enrichment started'
});
}
toggleCpmNormization() {
let settings = BackendAPI.setSetting('hasCpmNormalization', !this.state.settings.hasCpmNormalization);
this.setState({ settings: settings });
ReactGA.event({
category: 'settings',
action: 'toggle cpm normalization',
label: settings.hasCpmNormalization ? 'on' : 'off'
});
}
handleSocialMediaClick(event, type) {
ReactGA.event({
category: `Profile`,
action: `Social link tap`,
label: `${this.profileOwnerName} - ${type}`,
transport: `beacon`
});
}
export const logEvent = (category = '', action = '') => {
if (category && action) {
ReactGA.event({ category, action });
}
}
private handleClick = (): void => {
ReactGA.event({
category: `Pipeline Graph (${this.props.isExecution ? 'execution' : 'config'})`,
action: `Node clicked`,
});
this.props.nodeClicked(this.props.node);
};
handleClickAnaliticsDownloadCLIAccount() {
ReactGA.event({
category: 'UI',
action: 'UI_account_CLI_download'
});
}
render() {
handleSearchSubmit = (value) => {
Analytics.event({
category: 'Search',
action: 'Searched',
label: value.trim().replace(/@/g, '[at]'),
})
Router.push(`/result?p=${value.trim()}`)
}
Smooch.on('widget:opened', () => {
ReactGA.event(events.SmoochOpened)
})
private handleConfigureClicked = (e: React.MouseEvent): void => {
ReactGA.event({
category: 'Pipeline',
action: 'Configure pipeline button clicked',
label: this.props.group.heading,
});
this.configure(this.props.group.config.id);
e.stopPropagation();
};