mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: items alert.
This commit is contained in:
@@ -18,6 +18,7 @@ const initialState = {
|
||||
page_size: 12,
|
||||
page: 1,
|
||||
},
|
||||
selectedRows: [],
|
||||
};
|
||||
|
||||
export default createReducer(initialState, {
|
||||
@@ -58,6 +59,11 @@ export default createReducer(initialState, {
|
||||
[t.ITEM_BULK_ACTION_ADD]: (state, action) => {
|
||||
state.bulkActions[action.itemId] = true;
|
||||
},
|
||||
|
||||
[t.ITEM_SELECTED_ROWS_SET]: (state, action) => {
|
||||
const { selectedRows } = action.payload;
|
||||
state.selectedRows = selectedRows;
|
||||
},
|
||||
|
||||
[t.ITEM_BULK_ACTION_REMOVE]: (state, action) => {
|
||||
delete state.bulkActions[action.itemId];
|
||||
|
||||
@@ -13,4 +13,5 @@ export default {
|
||||
ITEMS_TABLE_LOADING: 'ITEMS_TABLE_LOADING',
|
||||
ITEMS_SET_CURRENT_VIEW: 'ITEMS_SET_CURRENT_VIEW',
|
||||
ITEMS_BULK_DELETE: 'ITEMS_BULK_DELETE',
|
||||
ITEM_SELECTED_ROWS_SET: 'ITEM_SELECTED_ROWS_SET',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user