mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: validate before move to full and partial transactions locking.
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
Intent,
|
||||
Divider,
|
||||
Classes,
|
||||
Tag,
|
||||
} from '@blueprintjs/core';
|
||||
import { Hint, Icon, If, FormattedMessage as T } from 'components';
|
||||
import { Popover2 } from '@blueprintjs/popover2';
|
||||
@@ -40,6 +41,7 @@ export const TransactionLockingContent = ({
|
||||
description,
|
||||
module,
|
||||
isEnabled,
|
||||
isPartialUnlock,
|
||||
onLock,
|
||||
onEditLock,
|
||||
onUnlockFull,
|
||||
@@ -70,6 +72,12 @@ export const TransactionLockingContent = ({
|
||||
<TransLockingItemTitle>
|
||||
{name}
|
||||
<Hint content={description} position={Position.BOTTOM_LEFT} />
|
||||
|
||||
{isPartialUnlock && (
|
||||
<Tag small={true} minimal={true} intent={Intent.PRIMARY}>
|
||||
Partial unlocked
|
||||
</Tag>
|
||||
)}
|
||||
</TransLockingItemTitle>
|
||||
<TransLockingItemDesc>
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
|
||||
|
||||
Reference in New Issue
Block a user