From aa8a7f4fe34b8021738cca19d5d7b989ad0395d4 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Sun, 25 Feb 2018 21:24:28 -0700 Subject: [PATCH] apply filters to exported transactions --- src/renderer/component/transactionList/view.jsx | 7 ++++--- src/renderer/util/parseData.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/renderer/component/transactionList/view.jsx b/src/renderer/component/transactionList/view.jsx index 5179abf80..df1be4813 100644 --- a/src/renderer/component/transactionList/view.jsx +++ b/src/renderer/component/transactionList/view.jsx @@ -46,9 +46,10 @@ class TransactionList extends React.PureComponent {
{Boolean(transactionList.length) && ( + data={transactionList} + title={__('Export Transactions')} + label={__('Export')} + /> )} {(transactionList.length || this.state.filter) && ( diff --git a/src/renderer/util/parseData.js b/src/renderer/util/parseData.js index c4c97909f..559809883 100644 --- a/src/renderer/util/parseData.js +++ b/src/renderer/util/parseData.js @@ -1,5 +1,5 @@ // Beautify JSON -const parseJson = data => JSON.stringify(data, null, "\t"); +const parseJson = data => JSON.stringify(data, null, '\t'); // No need for an external module: // https://gist.github.com/btzr-io/55c3450ea3d709fc57540e762899fb85