mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: bulk transcations delete
This commit is contained in:
@@ -15,4 +15,9 @@ export const resetItemsTableState = () => {
|
||||
};
|
||||
}
|
||||
|
||||
export const setSelectedRowsItems = () => {};
|
||||
export const setItemsSelectedRows = (selectedRows) => {
|
||||
return {
|
||||
type: 'ITEMS/SET_SELECTED_ROWS',
|
||||
payload: selectedRows,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -29,6 +29,10 @@ const CONFIG = {
|
||||
const reducerInstance = createReducer(initialState, {
|
||||
...createTableStateReducers('ITEMS', defaultTableQuery),
|
||||
|
||||
[`ITEMS/SET_SELECTED_ROWS`]: (state, action) => {
|
||||
state.selectedRows = action.payload;
|
||||
},
|
||||
|
||||
[t.RESET]: () => {
|
||||
purgeStoredState(CONFIG);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user