1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-06-13 13:39:23 -04:00

Basic Report UI complete!

This commit is contained in:
2017-06-17 10:28:50 -04:00
parent 5dff27e7f7
commit 9844785b8d
10 changed files with 331 additions and 75 deletions

View File

@ -63,16 +63,19 @@ module.exports = function(state = initialState, action) {
selectedTabulation: null,
seriesTraversal: []
});
case ReportConstants.TABULATION_FETCHED:
case ReportConstants.REPORT_TABULATED:
var tabulation = action.tabulation;
return assign({}, state, {
var tabulations = assign({}, state.tabulations, {
[tabulation.ReportId]: tabulation
});
return assign({}, state, {
tabulations: tabulations
});
case ReportConstants.SERIES_SELECTED:
return {
return assign({}, state, {
selectedTabulation: action.tabulation,
seriesTraversal: action.seriesTraversal
};
});
case UserConstants.USER_LOGGEDOUT:
return initialState;
default: