mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
28 lines
532 B
TypeScript
28 lines
532 B
TypeScript
// @ts-nocheck
|
|
import t from '@/store/types';
|
|
|
|
export const setAccountsTableState = (queries) => {
|
|
return {
|
|
type: t.ACCOUNTS_TABLE_STATE_SET,
|
|
payload: { queries },
|
|
};
|
|
};
|
|
|
|
/**
|
|
* Resets the accounts table state.
|
|
*/
|
|
export const resetAccountsTableState = () => {
|
|
return {
|
|
type: t.ACCOUNTS_TABLE_STATE_RESET,
|
|
};
|
|
};
|
|
|
|
/**
|
|
* Sets the selected rows for accounts table.
|
|
*/
|
|
export const setAccountsSelectedRows = (selectedRows) => {
|
|
return {
|
|
type: 'ACCOUNTS/SET_SELECTED_ROWS',
|
|
payload: selectedRows,
|
|
};
|
|
}; |