this.props.uptdateLang(arg)
})
window.ipcRenderer.on('ConfiguredNetwork', (event, arg) => {
- if(arg === 'starNode'){
+ if(arg === 'startNode'){
+ Object.keys(this.props.flashMessages).forEach(key => {
+ delete this.props.flashMessages[key]
+ })
this.props.showRoot()
}
if(arg === 'init'){
configKnown: state.core.configKnown,
configured: state.core.configured,
onTestnet: state.core.onTestnet,
+ flashMessages: state.app.flashMessages,
}),
(dispatch) => ({
fetchInfo: options => dispatch(actions.core.fetchCoreInfo(options)),
showConfiguration: () => dispatch(actions.app.showConfiguration()),
uptdateBtmAmountUnit: (param) => dispatch(actions.core.updateBTMAmountUnit(param)),
uptdateLang: (param) => dispatch(actions.core.updateLang(param)),
- updateConfiguredStatus: () => dispatch(actions.core.updateConfiguredStatus)
+ updateConfiguredStatus: () => dispatch(actions.core.updateConfiguredStatus),
+ markFlashDisplayed: (key) => dispatch(actions.app.displayedFlash(key)),
})
)(Container)