mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
wip
This commit is contained in:
@@ -20,3 +20,9 @@ export const setInvoicesSelectedRows = (selectedRows) => {
|
||||
payload: selectedRows,
|
||||
};
|
||||
};
|
||||
|
||||
export const resetInvoicesSelectedRows = () => {
|
||||
return {
|
||||
type: 'INVOICES/RESET_SELECTED_ROWS',
|
||||
};
|
||||
};
|
||||
@@ -32,6 +32,10 @@ const reducerInstance = createReducer(initialState, {
|
||||
state.selectedRows = action.payload;
|
||||
},
|
||||
|
||||
[`INVOICES/RESET_SELECTED_ROWS`]: (state) => {
|
||||
state.selectedRows = [];
|
||||
},
|
||||
|
||||
[t.RESET]: () => {
|
||||
purgeStoredState(CONFIG);
|
||||
},
|
||||
|
||||
@@ -20,3 +20,4 @@ export const setPaymentReceivesSelectedRows = (selectedRows) => {
|
||||
payload: selectedRows,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ const reducerInstance = createReducer(initialState, {
|
||||
isOpen: false,
|
||||
};
|
||||
},
|
||||
[t.CLOSE_ALL_DIALOGS]: (state, action) => {},
|
||||
[t.CLOSE_ALL_DIALOGS]: (state, action) => { },
|
||||
|
||||
[t.SET_TOPBAR_EDIT_VIEW]: (state, action) => {
|
||||
state.topbarEditViewId = action.id;
|
||||
|
||||
Reference in New Issue
Block a user