diff --git a/js/components/AccountRegister.js b/js/components/AccountRegister.js index 0b04457..51d21d6 100644 --- a/js/components/AccountRegister.js +++ b/js/components/AccountRegister.js @@ -781,6 +781,7 @@ class AccountRegister extends React.Component { handleImportComplete() { this.props.onCloseImportModal(); this.props.onFetchAllAccounts(); + this.props.onFetchAllSecurities(); if (this.props.selectedAccount != -1) { this.props.onFetchTransactionPage(this.props.accounts[this.props.selectedAccount], this.props.pageSize, this.props.transactionPage.page); } diff --git a/js/components/AccountsTab.js b/js/components/AccountsTab.js index a2684d2..5934414 100644 --- a/js/components/AccountsTab.js +++ b/js/components/AccountsTab.js @@ -721,6 +721,7 @@ class AccountsTab extends React.Component { transactionPage={this.props.transactionPage} imports={this.props.imports} onFetchAllAccounts={this.props.onFetchAllAccounts} + onFetchAllSecurities={this.props.onFetchAllSecurities} onCreateTransaction={this.props.onCreateTransaction} onUpdateTransaction={this.props.onUpdateTransaction} onDeleteTransaction={this.props.onDeleteTransaction} diff --git a/js/containers/AccountsTabContainer.js b/js/containers/AccountsTabContainer.js index af1f672..8d31e8b 100644 --- a/js/containers/AccountsTabContainer.js +++ b/js/containers/AccountsTabContainer.js @@ -1,5 +1,6 @@ var connect = require('react-redux').connect; +var SecurityActions = require('../actions/SecurityActions'); var AccountActions = require('../actions/AccountActions'); var TransactionActions = require('../actions/TransactionActions'); var ImportActions = require('../actions/ImportActions'); @@ -31,6 +32,7 @@ function mapDispatchToProps(dispatch) { onUpdateAccount: function(account) {dispatch(AccountActions.update(account))}, onDeleteAccount: function(account) {dispatch(AccountActions.remove(account))}, onSelectAccount: function(accountId) {dispatch(AccountActions.select(accountId))}, + onFetchAllSecurities: function() {dispatch(SecurityActions.fetchAll())}, onCreateTransaction: function(transaction) {dispatch(TransactionActions.create(transaction))}, onUpdateTransaction: function(transaction) {dispatch(TransactionActions.update(transaction))}, onDeleteTransaction: function(transaction) {dispatch(TransactionActions.remove(transaction))},