mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix(warehouse ) fix mark primary warehouse alert.
This commit is contained in:
@@ -31,7 +31,7 @@ function WarehouseMarkPrimaryAlert({
|
|||||||
const handleCancelMarkPrimaryAlert = () => {
|
const handleCancelMarkPrimaryAlert = () => {
|
||||||
closeAlert(name);
|
closeAlert(name);
|
||||||
};
|
};
|
||||||
|
console.log(warehouseId, 'XX');
|
||||||
// andle cancel mark primary confirm.
|
// andle cancel mark primary confirm.
|
||||||
const handleConfirmMarkPrimaryWarehouse = () => {
|
const handleConfirmMarkPrimaryWarehouse = () => {
|
||||||
markPrimaryWarehouseMutate(warehouseId)
|
markPrimaryWarehouseMutate(warehouseId)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { safeCallback } from 'utils';
|
|||||||
export function WarehouseContextMenu({
|
export function WarehouseContextMenu({
|
||||||
onEditClick,
|
onEditClick,
|
||||||
onDeleteClick,
|
onDeleteClick,
|
||||||
onPrimary,
|
onMarkPrimary,
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<Menu>
|
<Menu>
|
||||||
@@ -24,7 +24,7 @@ export function WarehouseContextMenu({
|
|||||||
<MenuItem
|
<MenuItem
|
||||||
icon={<Icon icon="check" />}
|
icon={<Icon icon="check" />}
|
||||||
text={intl.get('warehouses.action.make_as_parimary')}
|
text={intl.get('warehouses.action.make_as_parimary')}
|
||||||
onClick={safeCallback(onPrimary)}
|
onClick={safeCallback(onMarkPrimary)}
|
||||||
/>
|
/>
|
||||||
<MenuDivider />
|
<MenuDivider />
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
|||||||
@@ -1834,5 +1834,5 @@
|
|||||||
"warehouse_activate.dialog_success_message": "Multi-branches feature has been activated successfully.",
|
"warehouse_activate.dialog_success_message": "Multi-branches feature has been activated successfully.",
|
||||||
"warehouse.alert.mark_primary_message": "The given warehouse has been marked as primary.",
|
"warehouse.alert.mark_primary_message": "The given warehouse has been marked as primary.",
|
||||||
"warehouse.alert.are_you_sure_you_want_to_make":"Are you sure you want to make a primary warehouse?",
|
"warehouse.alert.are_you_sure_you_want_to_make":"Are you sure you want to make a primary warehouse?",
|
||||||
"make_primary":"Make Primary"
|
"make_primary":"Make as Primary"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user