import React from 'react'; import { connect } from 'react-redux'; import { toggleTroubleshootingMenu, resetLocalViewState, clickDownloadGraph } from '../actions/app-actions'; import { getReportUrl } 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 { pausedAt } = this.props; return (

Debugging/Troubleshooting

Save raw data as JSON {pausedAt && ( {' '} ( {pausedAt} ) )}
); } } function mapStateToProps(state) { return { pausedAt: state.get('pausedAt'), }; } export default connect(mapStateToProps, { clickDownloadGraph, resetLocalViewState, toggleTroubleshootingMenu })(DebugMenu);