mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
Merge branch 'develop' of https://github.com/bigcapitalhq/client into develop
This commit is contained in:
@@ -18,14 +18,15 @@ function Paragraph({ className, children }) {
|
||||
}
|
||||
|
||||
function TransactionsLockingList({ items, onlock, onUnlock, onUnlockPartial }) {
|
||||
return items.map(({ is_enabled, formatted_module, description }) => (
|
||||
return items.map(({ is_enabled, module, formatted_module, description }) => (
|
||||
<TransactionLockingContent
|
||||
name={formatted_module}
|
||||
module={module}
|
||||
description={description}
|
||||
isEnabled={is_enabled}
|
||||
onLock={onlock}
|
||||
onUnlockPartial={onUnlockPartial}
|
||||
onEditLock={onUnlock}
|
||||
onEditLock={onlock}
|
||||
/>
|
||||
));
|
||||
}
|
||||
@@ -108,17 +109,17 @@ function TransactionsLockingBodyJsx({
|
||||
} = useTransactionsLockingContext();
|
||||
|
||||
// Handle locking transactions.
|
||||
const handleLockingTransactions = () => {
|
||||
openDialog('locking-transactions', {});
|
||||
const handleLockingTransactions = (module) => {
|
||||
openDialog('locking-transactions', { module: module });
|
||||
};
|
||||
|
||||
// Handle unlocking transactions
|
||||
const handleUnlockTransactions = () => {
|
||||
openDialog('unlocking-transactions', {});
|
||||
const handleUnlockTransactions = (module) => {
|
||||
openDialog('unlocking-transactions', { module: module });
|
||||
};
|
||||
// Handle unlocking transactions
|
||||
const handleUnlockingPartial = () => {
|
||||
openDialog('unlocking-partial-transactions', {});
|
||||
const handleUnlockingPartial = (module) => {
|
||||
openDialog('unlocking-partial-transactions', { module: module });
|
||||
};
|
||||
|
||||
return !isTransactionLockingLoading ? (
|
||||
|
||||
Reference in New Issue
Block a user