From b65169f054f8616f98054c9b5db5139707a6b868 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Wed, 27 Dec 2017 16:03:50 -0600 Subject: [PATCH] fix(invoice modal): transition to wallet route and open the invoice modal on a newly created invoice --- app/main.dev.js | 2 +- app/reducers/invoice.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/main.dev.js b/app/main.dev.js index c1560a05..a37ee0eb 100644 --- a/app/main.dev.js +++ b/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' diff --git a/app/reducers/invoice.js b/app/reducers/invoice.js index 84ee9356..43932ccf 100644 --- a/app/reducers/invoice.js +++ b/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) => {