Skip to content

Commit

Permalink
Merge pull request #147 from openmsupply/142-add-parameters-button-to…
Browse files Browse the repository at this point in the history
…-sql-recipients-similar-to-notification-config

Added parameters link to sqlRecipients
  • Loading branch information
jmbrunskill authored Oct 1, 2023
2 parents b7f9ca6 + d15e8dc commit bb8dc00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import React, { useEffect } from 'react';
import { useTranslation } from '@common/intl';
import {
useBreadcrumbs,
useDetailPanel,
useNotification,
useQueryParamsState,
} from '@common/hooks';
import {
AppBarButtonsPortal,
AppBarContentPortal,
BasicSpinner,
Box,
Expand Down Expand Up @@ -44,6 +46,7 @@ export const DetailEdit = () => {
const urlParams = useParams();
const { suffix, setSuffix } = useBreadcrumbs();
const { error } = useNotification();
const { OpenButton } = useDetailPanel(t('label.parameters'));

const { queryParams } = useQueryParamsState({
initialFilter: { id: { equalTo: urlParams['listId'] } },
Expand Down Expand Up @@ -96,6 +99,7 @@ export const DetailEdit = () => {

return (
<>
<AppBarButtonsPortal>{OpenButton}</AppBarButtonsPortal>
{/* Description/Details section */}
<AppBarContentPortal sx={{ paddingBottom: '16px', flex: 1 }}>
<Paper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ export const RecipientQueryEditor = ({
{TeraUtils.extractParams(draft.query).join(', ')}
</Typography>
<IconButton
height="24px"
width="24px"
onClick={openSidePanel}
icon={<EditIcon />}
label={t('label.edit')}
Expand Down

0 comments on commit bb8dc00

Please sign in to comment.