Skip to content

Commit

Permalink
feat: add working delete button to unsent message's detail page
Browse files Browse the repository at this point in the history
refs KK-1213
  • Loading branch information
karisal-anders committed Sep 5, 2024
1 parent 05ef255 commit a9285cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/domain/messages/detail/MessageDetailsToolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import {
useTranslate,
DeleteButton,
EditButton,
TopToolbar,
useResourceContext,
Expand Down Expand Up @@ -60,6 +61,7 @@ const MessageDetailToolbar = () => {
return (
<TopToolbar>
{record && <EditButton record={record} />}
{record && <DeleteButton mutationMode="pessimistic" record={record} />}
{record && basePath && (
<MessageSendButton className={classes.sendButton} />
)}
Expand Down

0 comments on commit a9285cf

Please sign in to comment.