BIG-225 Add menu divider before delete on contextMenu.

This commit is contained in:
elforjani13
2021-12-30 21:54:32 +02:00
parent b2c08d5645
commit 40ae1aeb52
22 changed files with 30 additions and 11 deletions

View File

@@ -83,6 +83,7 @@ export function ActionsMenu({
onClick={safeCallback(onAllocateLandedCost, original)}
/>
<Can I={BillAction.Delete} a={AbilitySubject.Bill}>
<MenuDivider />
<MenuItem
text={intl.get('delete_bill')}
intent={Intent.DANGER}

View File

@@ -70,6 +70,7 @@ export function ActionsMenu({
</If>
</Can>
<Can I={VendorCreditAction.Delete} a={AbilitySubject.VendorCredit}>
<MenuDivider />
<MenuItem
text={intl.get('vendor_credits.action.delete_vendor_credit')}
intent={Intent.DANGER}

View File

@@ -46,6 +46,7 @@ export function ActionsMenu({
/>
</Can>
<Can I={PaymentMadeAction.Delete} a={AbilitySubject.PaymentMade}>
<MenuDivider />
<MenuItem
text={intl.get('delete_payment_made')}
intent={Intent.DANGER}