From dfb039a9361a1a0d19a31e25130c89f70828ef00 Mon Sep 17 00:00:00 2001 From: Sascha Date: Fri, 19 Mar 2021 14:25:42 +0100 Subject: [PATCH] Rename MessageEditHistoryQuery --- .../{MessageEditHistory.graphql => MessageHistory.graphql} | 2 +- webui/src/pages/bug/MessageHistoryDialog.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename webui/src/pages/bug/{MessageEditHistory.graphql => MessageHistory.graphql} (83%) diff --git a/webui/src/pages/bug/MessageEditHistory.graphql b/webui/src/pages/bug/MessageHistory.graphql similarity index 83% rename from webui/src/pages/bug/MessageEditHistory.graphql rename to webui/src/pages/bug/MessageHistory.graphql index 6fde8d45..e90eb459 100644 --- a/webui/src/pages/bug/MessageEditHistory.graphql +++ b/webui/src/pages/bug/MessageHistory.graphql @@ -1,7 +1,7 @@ #import "./MessageCommentFragment.graphql" #import "./MessageCreateFragment.graphql" -query MessageEditHistory($bugIdPrefix: String!) { +query MessageHistory($bugIdPrefix: String!) { repository { bug(prefix: $bugIdPrefix) { timeline { diff --git a/webui/src/pages/bug/MessageHistoryDialog.tsx b/webui/src/pages/bug/MessageHistoryDialog.tsx index c49ac661..9857f272 100644 --- a/webui/src/pages/bug/MessageHistoryDialog.tsx +++ b/webui/src/pages/bug/MessageHistoryDialog.tsx @@ -23,7 +23,7 @@ import CloseIcon from '@material-ui/icons/Close'; import { AddCommentFragment } from './MessageCommentFragment.generated'; import { CreateFragment } from './MessageCreateFragment.generated'; -import { useMessageEditHistoryQuery } from './MessageEditHistory.generated'; +import { useMessageHistoryQuery } from './MessageHistory.generated'; const styles = (theme: Theme) => createStyles({ @@ -120,7 +120,7 @@ type Props = { function MessageHistoryDialog({ bugId, commentId, open, onClose }: Props) { const [expanded, setExpanded] = React.useState('panel0'); - const { loading, error, data } = useMessageEditHistoryQuery({ + const { loading, error, data } = useMessageHistoryQuery({ variables: { bugIdPrefix: bugId }, }); if (loading) {