apply filters to exported transactions

This commit is contained in:
btzr-io 2018-02-25 21:24:28 -07:00
parent 5ca2e74808
commit aa8a7f4fe3
2 changed files with 5 additions and 4 deletions

View file

@ -46,9 +46,10 @@ class TransactionList extends React.PureComponent {
<div> <div>
{Boolean(transactionList.length) && ( {Boolean(transactionList.length) && (
<FileExporter <FileExporter
data={transactions} data={transactionList}
title={__("Export Transactions")} title={__('Export Transactions')}
label={__("Export")} /> label={__('Export')}
/>
)} )}
{(transactionList.length || this.state.filter) && ( {(transactionList.length || this.state.filter) && (
<span className="sort-section"> <span className="sort-section">

View file

@ -1,5 +1,5 @@
// Beautify JSON // Beautify JSON
const parseJson = data => JSON.stringify(data, null, "\t"); const parseJson = data => JSON.stringify(data, null, '\t');
// No need for an external module: // No need for an external module:
// https://gist.github.com/btzr-io/55c3450ea3d709fc57540e762899fb85 // https://gist.github.com/btzr-io/55c3450ea3d709fc57540e762899fb85