mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat(FinancialReports): add loading progress bar.
fix(preformance): Optimize preformance of virtualized list. fix(preformance): Optimize financial reports preformance.
This commit is contained in:
@@ -29,6 +29,8 @@ export default createReducer(initialState, {
|
||||
state.token = '';
|
||||
state.user = {};
|
||||
state.organization = '';
|
||||
state.organizationId = null;
|
||||
state.tenant = {};
|
||||
},
|
||||
|
||||
[t.LOGIN_CLEAR_ERRORS]: (state) => {
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
import ApiService from 'services/ApiService';
|
||||
import t from 'store/types';
|
||||
|
||||
export const setOrganizations = (organizations) => {
|
||||
return {
|
||||
type: t.ORGANIZATIONS_LIST_SET,
|
||||
payload: {
|
||||
organizations,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export const fetchOrganizations = () => (dispatch) => new Promise((resolve, reject) => {
|
||||
ApiService.get('organization/all').then((response) => {
|
||||
dispatch({
|
||||
|
||||
@@ -29,3 +29,11 @@ export const FetchOptions = ({ form }) => {
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
export const setSettings = (settings) => {
|
||||
return {
|
||||
type: t.SETTING_SET,
|
||||
options: settings,
|
||||
};
|
||||
}
|
||||
@@ -11,4 +11,14 @@ export const fetchSubscriptions = () => (dispatch) => new Promise((resolve, reje
|
||||
});
|
||||
resolve(response);
|
||||
}).catch((error) => { reject(error); })
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
export const setSubscriptions = (subscriptions) => {
|
||||
return {
|
||||
type: t.SET_PLAN_SUBSCRIPTIONS_LIST,
|
||||
payload: {
|
||||
subscriptions,
|
||||
},
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user