mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
WIP: lnd tx list refreshed upon sucessfull payInvoice
This commit is contained in:
parent
2ac65a4e3d
commit
a35008758d
2 changed files with 3 additions and 1 deletions
|
@ -15,6 +15,7 @@ import {
|
|||
/** @type {AppStorage} */
|
||||
let BlueApp = require('../../BlueApp');
|
||||
let currency = require('../../currency');
|
||||
let EV = require('../../events');
|
||||
const { width } = Dimensions.get('window');
|
||||
|
||||
export default class ScanLndInvoice extends React.Component {
|
||||
|
@ -129,6 +130,7 @@ export default class ScanLndInvoice extends React.Component {
|
|||
}
|
||||
|
||||
console.log('payInvoice took', (end - start) / 1000, 'sec');
|
||||
EV(EV.enum.TRANSACTIONS_COUNT_CHANGED);
|
||||
|
||||
alert('Success');
|
||||
this.props.navigation.goBack();
|
||||
|
|
|
@ -63,6 +63,7 @@ export default class WalletsList extends Component {
|
|||
isLoading: true,
|
||||
};
|
||||
EV(EV.enum.WALLETS_COUNT_CHANGED, this.refreshFunction.bind(this));
|
||||
EV(EV.enum.TRANSACTIONS_COUNT_CHANGED, this.refreshTransactions.bind(this));
|
||||
}
|
||||
|
||||
async componentDidMount() {
|
||||
|
@ -173,7 +174,6 @@ export default class WalletsList extends Component {
|
|||
showManageFundsBigButton: false,
|
||||
showManageFundsSmallButton: false,
|
||||
showSendButton: false,
|
||||
// TODO: погуглить че это за ебала ds.cloneWithRows, можно ли быстрее сделать прогрузку транзакций на экран
|
||||
dataSource: BlueApp.getTransactions(index),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue