mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-23 16:19:49 +00:00
feat(warehousetTransfer): warehouse floating actions.
This commit is contained in:
@@ -79,6 +79,7 @@ export default function WarehouseTransferFloatingActions() {
|
||||
return (
|
||||
<div className={classNames(CLASSES.PAGE_FORM_FLOATING_ACTIONS)}>
|
||||
{/* ----------- Save Intitate & transferred ----------- */}
|
||||
<If condition={!warehouseTransfer || !warehouseTransfer?.is_transferred}>
|
||||
<ButtonGroup>
|
||||
<Button
|
||||
disabled={isSubmitting}
|
||||
@@ -93,7 +94,9 @@ export default function WarehouseTransferFloatingActions() {
|
||||
content={
|
||||
<Menu>
|
||||
<MenuItem
|
||||
text={<T id={'warehouse_transfer.save_mark_as_transferred'} />}
|
||||
text={
|
||||
<T id={'warehouse_transfer.save_mark_as_transferred'} />
|
||||
}
|
||||
onClick={handleSubmitTransferredBtnClick}
|
||||
/>
|
||||
</Menu>
|
||||
@@ -141,7 +144,17 @@ export default function WarehouseTransferFloatingActions() {
|
||||
/>
|
||||
</Popover>
|
||||
</ButtonGroup>
|
||||
|
||||
</If>
|
||||
<If condition={warehouseTransfer && warehouseTransfer?.is_transferred}>
|
||||
<Button
|
||||
disabled={isSubmitting}
|
||||
loading={isSubmitting}
|
||||
intent={Intent.PRIMARY}
|
||||
onClick={handleSubmitTransferredBtnClick}
|
||||
style={{ minWidth: '100px' }}
|
||||
text={<T id={'save'} />}
|
||||
/>
|
||||
</If>
|
||||
{/* ----------- Clear & Reset----------- */}
|
||||
<Button
|
||||
className={'ml1'}
|
||||
|
||||
Reference in New Issue
Block a user