mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: dashboard back link in expand mode.
This commit is contained in:
@@ -10,6 +10,7 @@ export default (mapState) => {
|
||||
editViewId: state.dashboard.topbarEditViewId,
|
||||
sidebarExpended: state.dashboard.sidebarExpended,
|
||||
preferencesPageTitle: state.dashboard.preferencesPageTitle,
|
||||
dashboardBackLink: state.dashboard.backLink,
|
||||
};
|
||||
return mapState ? mapState(mapped, state, props) : mapped;
|
||||
};
|
||||
|
||||
@@ -57,6 +57,11 @@ const mapActionsToProps = (dispatch) => ({
|
||||
recordSidebarPreviousExpand: () => dispatch({
|
||||
type: t.RECORD_SIDEBAR_PREVIOUS_EXPAND,
|
||||
}),
|
||||
|
||||
setDashboardBackLink: (backLink) => dispatch({
|
||||
type: t.SET_DASHBOARD_BACK_LINK,
|
||||
payload: { backLink }
|
||||
})
|
||||
});
|
||||
|
||||
export default connect(null, mapActionsToProps);
|
||||
|
||||
Reference in New Issue
Block a user