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 7d1d645
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 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 @@ -141,6 +141,14 @@ const ServiceTicketMails = () => {
<EuiPageBody component="div">
<EuiPanel>
<EuiFlexGroup>
<EuiFlexItem grow={false}>
<EuiButtonIcon
size="m"
display="base"
onClick={() => redirect(`/tickets/${id}`)}
iconType="editorUndo"
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiTitle size="m">
<h1>Service ticket {ticket?.jira_ticket_id} mail log</h1>
Expand Down

0 comments on commit 7d1d645

Please sign in to comment.