mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 20:59:16 +00:00
fix: change ticket options menu due to ref error
This commit is contained in:
@@ -65,6 +65,9 @@ const TicketOptionsMenu = ({ ticket, menuOpen, handleClose, anchorEl }) => {
|
|||||||
open={menuOpen}
|
open={menuOpen}
|
||||||
onClose={handleClose}
|
onClose={handleClose}
|
||||||
>
|
>
|
||||||
|
<MenuItem onClick={handleOpenTransferModal}>
|
||||||
|
{i18n.t("ticketOptionsMenu.transfer")}
|
||||||
|
</MenuItem>
|
||||||
<Can
|
<Can
|
||||||
role={user.profile}
|
role={user.profile}
|
||||||
perform="ticket-options:deleteTicket"
|
perform="ticket-options:deleteTicket"
|
||||||
@@ -74,10 +77,6 @@ const TicketOptionsMenu = ({ ticket, menuOpen, handleClose, anchorEl }) => {
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<MenuItem onClick={handleOpenTransferModal}>
|
|
||||||
{i18n.t("ticketOptionsMenu.transfer")}
|
|
||||||
</MenuItem>
|
|
||||||
</Menu>
|
</Menu>
|
||||||
<ConfirmationModal
|
<ConfirmationModal
|
||||||
title={`${i18n.t("ticketOptionsMenu.confirmationModal.title")}${
|
title={`${i18n.t("ticketOptionsMenu.confirmationModal.title")}${
|
||||||
|
|||||||
Reference in New Issue
Block a user