import React from 'react'; import { connect } from 'react-redux'; import { toggleTroubleshootingMenu, resetLocalViewState, clickDownloadGraph } from '../actions/app-actions'; import { getApiPath } from '../utils/web-api-utils'; class DebugMenu extends React.Component { constructor(props, context) { super(props, context); this.handleClickReset = this.handleClickReset.bind(this); } handleClickReset(ev) { ev.preventDefault(); this.props.resetLocalViewState(); } render() { const reportDownloadUrl = process.env.WEAVE_CLOUD ? `${getApiPath()}/api/report` : 'api/report'; return (

Debugging/Troubleshooting

Save raw data as JSON
Report a bug
); } } export default connect(null, { toggleTroubleshootingMenu, resetLocalViewState, clickDownloadGraph })(DebugMenu);