mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 07:40:32 +00:00
fix: cancel partial locking.
This commit is contained in:
@@ -89,7 +89,7 @@ export const TransactionLockingContent = ({
|
|||||||
</TransLockingContent>
|
</TransLockingContent>
|
||||||
|
|
||||||
<TransLockingActions>
|
<TransLockingActions>
|
||||||
<If condition={!isEnabled && !isPartialUnlock}>
|
<If condition={!isEnabled}>
|
||||||
<Button
|
<Button
|
||||||
small={true}
|
small={true}
|
||||||
minimal={true}
|
minimal={true}
|
||||||
@@ -100,7 +100,7 @@ export const TransactionLockingContent = ({
|
|||||||
</Button>
|
</Button>
|
||||||
</If>
|
</If>
|
||||||
|
|
||||||
<If condition={isEnabled && !isPartialUnlock}>
|
<If condition={isEnabled}>
|
||||||
<Button
|
<Button
|
||||||
small={true}
|
small={true}
|
||||||
minimal={true}
|
minimal={true}
|
||||||
@@ -115,10 +115,18 @@ export const TransactionLockingContent = ({
|
|||||||
<Menu>
|
<Menu>
|
||||||
<MenuItem text="Full unlock" onClick={handleUnlockFull} />
|
<MenuItem text="Full unlock" onClick={handleUnlockFull} />
|
||||||
|
|
||||||
<MenuItem
|
<If condition={!isPartialUnlock}>
|
||||||
text="Partial unlock"
|
<MenuItem
|
||||||
onClick={handleUnlockPartial}
|
text="Partial unlock"
|
||||||
/>
|
onClick={handleUnlockPartial}
|
||||||
|
/>
|
||||||
|
</If>
|
||||||
|
<If condition={isPartialUnlock}>
|
||||||
|
<MenuItem
|
||||||
|
text="Cancel partial unlock"
|
||||||
|
onClick={handleCanclel}
|
||||||
|
/>
|
||||||
|
</If>
|
||||||
</Menu>
|
</Menu>
|
||||||
}
|
}
|
||||||
placement={'bottom-start'}
|
placement={'bottom-start'}
|
||||||
@@ -129,17 +137,6 @@ export const TransactionLockingContent = ({
|
|||||||
</Button>
|
</Button>
|
||||||
</Popover2>
|
</Popover2>
|
||||||
</If>
|
</If>
|
||||||
|
|
||||||
<If condition={isPartialUnlock}>
|
|
||||||
<Button
|
|
||||||
small={true}
|
|
||||||
minimal={true}
|
|
||||||
intent={Intent.PRIMARY}
|
|
||||||
onClick={handleCanclel}
|
|
||||||
>
|
|
||||||
Cancel
|
|
||||||
</Button>
|
|
||||||
</If>
|
|
||||||
</TransLockingActions>
|
</TransLockingActions>
|
||||||
</TransLockingInner>
|
</TransLockingInner>
|
||||||
</TransactionLockingWrapp>
|
</TransactionLockingWrapp>
|
||||||
|
|||||||
Reference in New Issue
Block a user