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
parent
commit
2e264f2d36
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/main.dev.js
  2. 8
      app/reducers/invoice.js

2
app/main.dev.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'

8
app/reducers/invoice.js

@ -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) => {

Loading…
Cancel
Save