mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix: Abilities keys.
This commit is contained in:
@@ -27,7 +27,7 @@ import withPaymentReceives from './withPaymentReceives';
|
||||
import withSettingsActions from 'containers/Settings/withSettingsActions';
|
||||
import withSettings from 'containers/Settings/withSettings';
|
||||
import {
|
||||
Payment_Receive_Abilities,
|
||||
PaymentReceiveAction,
|
||||
AbilitySubject,
|
||||
} from '../../../../common/abilityOption';
|
||||
import { compose } from 'utils';
|
||||
@@ -88,7 +88,7 @@ function PaymentReceiveActionsBar({
|
||||
onChange={handleTabChange}
|
||||
/>
|
||||
<NavbarDivider />
|
||||
<Can I={Payment_Receive_Abilities.Create} a={AbilitySubject.PaymentReceive}>
|
||||
<Can I={PaymentReceiveAction.Create} a={AbilitySubject.PaymentReceive}>
|
||||
<Button
|
||||
className={Classes.MINIMAL}
|
||||
icon={<Icon icon={'plus'} />}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useHistory } from 'react-router-dom';
|
||||
import { EmptyStatus } from 'components';
|
||||
import { Can, FormattedMessage as T } from 'components';
|
||||
import {
|
||||
Payment_Receive_Abilities,
|
||||
PaymentReceiveAction,
|
||||
AbilitySubject,
|
||||
} from '../../../../common/abilityOption';
|
||||
|
||||
@@ -24,7 +24,7 @@ export default function PaymentReceivesEmptyStatus() {
|
||||
action={
|
||||
<>
|
||||
<Can
|
||||
I={Payment_Receive_Abilities.Create}
|
||||
I={PaymentReceiveAction.Create}
|
||||
a={AbilitySubject.PaymentReceive}
|
||||
>
|
||||
<Button
|
||||
|
||||
@@ -15,7 +15,7 @@ import { FormatDateCell, Money, Icon, Can } from 'components';
|
||||
import { safeCallback } from 'utils';
|
||||
import { CLASSES } from '../../../../common/classes';
|
||||
import {
|
||||
Payment_Receive_Abilities,
|
||||
PaymentReceiveAction,
|
||||
AbilitySubject,
|
||||
} from '../../../../common/abilityOption';
|
||||
/**
|
||||
@@ -32,7 +32,7 @@ export function ActionsMenu({
|
||||
text={intl.get('view_details')}
|
||||
onClick={safeCallback(onViewDetails, paymentReceive)}
|
||||
/>
|
||||
<Can I={Payment_Receive_Abilities.Edit} a={AbilitySubject.PaymentReceive}>
|
||||
<Can I={PaymentReceiveAction.Edit} a={AbilitySubject.PaymentReceive}>
|
||||
<MenuDivider />
|
||||
<MenuItem
|
||||
icon={<Icon icon="pen-18" />}
|
||||
@@ -40,7 +40,7 @@ export function ActionsMenu({
|
||||
onClick={safeCallback(onEdit, paymentReceive)}
|
||||
/>
|
||||
</Can>
|
||||
<Can I={Payment_Receive_Abilities.Delete} a={AbilitySubject.PaymentReceive}>
|
||||
<Can I={PaymentReceiveAction.Delete} a={AbilitySubject.PaymentReceive}>
|
||||
<MenuItem
|
||||
text={intl.get('delete_payment_receive')}
|
||||
intent={Intent.DANGER}
|
||||
|
||||
Reference in New Issue
Block a user