Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
cim: Add 'back' button on service ticket mails page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark90 committed Jun 29, 2023
1 parent 830ef22 commit 47e6f6d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/custom-surf/pages/ServiceTicketMails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ServiceTicketMails = () => {

const [items, setItems] = useState<EmailLogWithId[]>([]);
const [ticket, setTicket] = useState<ServiceTicketWithDetails>();
const { customApiClient } = useContext(ApplicationContext);
const { customApiClient, redirect } = useContext(ApplicationContext);

const { isLoading, error } = useQuery<ServiceTicketWithDetails, Error>(
["ticket", { id: id }],
Expand Down Expand Up @@ -155,6 +155,16 @@ const ServiceTicketMails = () => {
></EuiButtonIcon>
</EuiFlexItem>

<EuiFlexItem grow={false}>
<EuiButton
size="m"
// display="base"
onClick={() => redirect(`/tickets/${id}`)}
iconType="editorUndo"
>
Back
</EuiButton>
</EuiFlexItem>
<EuiFlexItem grow={false} style={{ minWidth: 140 }}>
<EuiButton
isSelected={!showHtml}
Expand Down

0 comments on commit 47e6f6d

Please sign in to comment.