Browse Source
Merge pull request #132 from LN-Zap/fix/request-modal-after-creation
fix(invoice modal): transition to wallet route and open the invoice m…
renovate/lint-staged-8.x
JimmyMow
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
1 deletions
-
app/main.dev.js
-
app/reducers/invoice.js
|
|
@ -169,7 +169,7 @@ export const startLnd = () => { |
|
|
|
'--bitcoin.active', |
|
|
|
'--bitcoin.testnet', |
|
|
|
'--neutrino.active', |
|
|
|
'--neutrino.connect=btcd0.lightning.computer:18333', |
|
|
|
'--neutrino.connect=btcd.jackmallers.com:18333', |
|
|
|
'--autopilot.active', |
|
|
|
'--debuglevel=debug', |
|
|
|
'--noencryptwallet' |
|
|
|
|
|
@ -1,6 +1,8 @@ |
|
|
|
import { createSelector } from 'reselect' |
|
|
|
import { ipcRenderer } from 'electron' |
|
|
|
import { push } from 'react-router-redux' |
|
|
|
|
|
|
|
import { showActivityModal } from './activity' |
|
|
|
import { fetchBalance } from './balance' |
|
|
|
import { setFormType } from './form' |
|
|
|
import { setPayInvoice } from './payform' |
|
|
@ -110,6 +112,12 @@ export const createdInvoice = (event, invoice) => (dispatch) => { |
|
|
|
|
|
|
|
// Reset the payment form
|
|
|
|
dispatch(resetRequestForm()) |
|
|
|
|
|
|
|
// Transition to wallet route
|
|
|
|
dispatch(push('/')) |
|
|
|
|
|
|
|
// Set invoice modal to newly created invoice
|
|
|
|
dispatch(showActivityModal('INVOICE', { invoice })) |
|
|
|
} |
|
|
|
|
|
|
|
export const invoiceFailed = (event, { error }) => (dispatch) => { |
|
|
|