Skip to content

Commit

Permalink
Dead code removal
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCarlino committed Nov 12, 2018
1 parent de73972 commit 017cba9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions webpack/devices/components/diagnostic_dump_row.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import { Row, Col } from "../../ui";
import { TaggedDiagnosticDump } from "farmbot";
import { jsonDownload } from "../../account/request_account_export";
// import { jsonDownload } from "../../account/request_account_export";
import { destroy } from "../../api/crud";
import { ago } from "../connectivity/status_checks";
import { t } from "i18next";
Expand All @@ -18,13 +18,13 @@ export class DiagnosticDumpRow extends React.Component<Props, {}> {

destroy = () => this.props.dispatch(destroy(this.props.diag.uuid));

download = (e: React.MouseEvent<{}>) => {
e.preventDefault();
const { body } = this.props.diag;
const { ticket_identifier } = body;
const fileName = `farmbot_diagnostics_${ticket_identifier}.json`;
jsonDownload(body, fileName);
}
// download = (e: React.MouseEvent<{}>) => {
// e.preventDefault();
// const { body } = this.props.diag;
// const { ticket_identifier } = body;
// const fileName = `farmbot_diagnostics_${ticket_identifier}.json`;
// jsonDownload(body, fileName);
// }

render() {
return <Row>
Expand Down

0 comments on commit 017cba9

Please sign in to comment.