mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-06-25 17:38:38 -04:00
Add new account dropdown with search to top bar
This commit is contained in:
@ -23,7 +23,6 @@ function mapStateToProps(state) {
|
||||
function mapDispatchToProps(dispatch) {
|
||||
return {
|
||||
onFetchAllAccounts: function() {dispatch(AccountActions.fetchAll())},
|
||||
onCreateAccount: function(account) {dispatch(AccountActions.create(account))},
|
||||
onUpdateAccount: function(account) {dispatch(AccountActions.update(account))},
|
||||
onDeleteAccount: function(account) {dispatch(AccountActions.remove(account))},
|
||||
onSelectAccount: function(accountId) {dispatch(AccountActions.select(accountId))},
|
||||
|
@ -1,13 +1,19 @@
|
||||
var connect = require('react-redux').connect;
|
||||
|
||||
var UserActions = require('../actions/UserActions');
|
||||
var AccountActions = require('../actions/AccountActions');
|
||||
var TransactionActions = require('../actions/TransactionActions');
|
||||
var SecurityTemplateActions = require('../actions/SecurityTemplateActions');
|
||||
|
||||
var MoneyGoApp = require('../components/MoneyGoApp');
|
||||
|
||||
function mapStateToProps(state) {
|
||||
return {
|
||||
user: state.user
|
||||
user: state.user,
|
||||
accounts: state.accounts.map,
|
||||
accountChildren: state.accounts.children,
|
||||
selectedAccount: state.selectedAccount,
|
||||
security_list: state.securities.list,
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,6 +21,9 @@ function mapDispatchToProps(dispatch) {
|
||||
return {
|
||||
tryResumingSession: function() {dispatch(UserActions.tryResumingSession())},
|
||||
fetchCurrencies: function() {dispatch(SecurityTemplateActions.fetchCurrencies())},
|
||||
onCreateAccount: function(account) {dispatch(AccountActions.create(account))},
|
||||
onSelectAccount: function(accountId) {dispatch(AccountActions.select(accountId))},
|
||||
onFetchTransactionPage: function(account, pageSize, page) {dispatch(TransactionActions.fetchPage(account, pageSize, page))},
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user