This commit is contained in:
Ahmed Bouhuolia
2025-11-19 22:59:30 +02:00
parent 2b384b2f6f
commit 5eafd23bf8
75 changed files with 1986 additions and 826 deletions

View File

@@ -20,3 +20,9 @@ export const setInvoicesSelectedRows = (selectedRows) => {
payload: selectedRows,
};
};
export const resetInvoicesSelectedRows = () => {
return {
type: 'INVOICES/RESET_SELECTED_ROWS',
};
};

View File

@@ -32,6 +32,10 @@ const reducerInstance = createReducer(initialState, {
state.selectedRows = action.payload;
},
[`INVOICES/RESET_SELECTED_ROWS`]: (state) => {
state.selectedRows = [];
},
[t.RESET]: () => {
purgeStoredState(CONFIG);
},

View File

@@ -20,3 +20,4 @@ export const setPaymentReceivesSelectedRows = (selectedRows) => {
payload: selectedRows,
};
};

View File

@@ -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;