From ab07b45e055eb627e35725040f91fa4fe36f747a Mon Sep 17 00:00:00 2001 From: Anthony Date: Thu, 19 Aug 2021 13:57:46 +0200 Subject: [PATCH] adding in transactions to existing table --- ui/component/txoList/view.jsx | 103 +++++++++++++++++++++++++++++++++- 1 file changed, 102 insertions(+), 1 deletion(-) diff --git a/ui/component/txoList/view.jsx b/ui/component/txoList/view.jsx index c9b457a8a..fca23f6d1 100644 --- a/ui/component/txoList/view.jsx +++ b/ui/component/txoList/view.jsx @@ -251,7 +251,7 @@ function TxoList(props: Props) { // } isBodyList - body={ + body={ currency === 'credits' ?
@@ -352,8 +352,109 @@ function TxoList(props: Props) { {/* listing of the transactions */} +
: +
+
+
+
+ + {__('Type')} + + + } + value={type || 'all'} + onChange={(e) => handleChange({ dkey: TXO.TYPE, value: e.target.value, tab })} + > + {Object.values(TXO.DROPDOWN_TYPES).map((v) => { + const stringV = String(v); + return ( + + ); + })} + +
+ {(type === TXO.SENT || type === TXO.RECEIVED) && ( +
+ handleChange({ dkey: TXO.SUB_TYPE, value: e.target.value, tab })} + > + {Object.values(TXO.DROPDOWN_SUBTYPES).map((v) => { + const stringV = String(v); + return ( + + ); + })} + +
+ )} + {!hideStatus && ( +
+ + +
+
+
+
+ )} +
+ {!isFetchingTransactions && transactionsFile === null && ( + + )} +
+ fetchTransactions()} + progressMsg={isFetchingTransactions ? __('Fetching data') : ''} + /> +
+
+
+
+ {/* listing of the transactions */} +
} + /> ); }