feat: add item & inventory adjustment ability.

This commit is contained in:
elforjani13
2021-11-23 19:29:58 +02:00
parent e5d02043ad
commit fca4dedeac
7 changed files with 124 additions and 47 deletions

View File

@@ -9,7 +9,7 @@ import withAlertsActions from 'containers/Alert/withAlertActions';
import { Icon, FormattedMessage as T, Can } from 'components';
import {
InventoryAdjustment,
Inventory_Adjustment_Abilities,
AbilitySubject,
} from '../../../common/abilityOption';
@@ -30,7 +30,10 @@ function InventoryAdjustmentDetailActionsBar({
};
return (
<Can I={InventoryAdjustment.Delete} a={AbilitySubject.InventoryAdjustment}>
<Can
I={Inventory_Adjustment_Abilities.Delete}
a={AbilitySubject.Inventory_Adjustment}
>
<DashboardActionsBar>
<NavbarGroup>
<Button