mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-03 18:13:27 -05:00 
			
		
		
		
	Add lots of backend and back-frontend report infrastructure
This commit is contained in:
		@@ -5,15 +5,19 @@ var ReportsTab = require('../components/ReportsTab');
 | 
			
		||||
 | 
			
		||||
function mapStateToProps(state) {
 | 
			
		||||
	return {
 | 
			
		||||
		reports: state.reports,
 | 
			
		||||
		selectedReport: state.selectedReport
 | 
			
		||||
		reports: state.reports
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function mapDispatchToProps(dispatch) {
 | 
			
		||||
	return {
 | 
			
		||||
		onFetchReport: function(reportname) {dispatch(ReportActions.fetch(reportname))},
 | 
			
		||||
		onSelectReport: function(report, seriesTraversal) {dispatch(ReportActions.select(report, seriesTraversal))}
 | 
			
		||||
		onFetchAllReports: function() {dispatch(ReportActions.fetchAll())},
 | 
			
		||||
		onCreateReport: function(report) {dispatch(ReportActions.create(report))},
 | 
			
		||||
		onUpdateReport: function(report) {dispatch(ReportActions.update(report))},
 | 
			
		||||
		onDeleteReport: function(report) {dispatch(ReportActions.remove(report))},
 | 
			
		||||
		onSelectReport: function(report) {dispatch(ReportActions.select(report))},
 | 
			
		||||
		onTabulateReport: function(report) {dispatch(ReportActions.tabulate(report))},
 | 
			
		||||
		onSelectSeries: function(tabulation, seriesTraversal) {dispatch(ReportActions.selectSeries(tabulation, seriesTraversal))}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user