diff options
author | Sascha <GlancingMind@outlook.com> | 2021-03-19 14:25:42 +0100 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-03-19 17:53:09 +0100 |
commit | dfb039a9361a1a0d19a31e25130c89f70828ef00 (patch) | |
tree | 7587c1bf2883d6442c8bb0cd2a801780d84f9f5a /webui | |
parent | 155b37e81fb3a5f463ddcc0c39790ea9b755d57b (diff) | |
download | git-bug-dfb039a9361a1a0d19a31e25130c89f70828ef00.tar.gz |
Rename MessageEditHistoryQuery
Diffstat (limited to 'webui')
-rw-r--r-- | webui/src/pages/bug/MessageHistory.graphql (renamed from webui/src/pages/bug/MessageEditHistory.graphql) | 2 | ||||
-rw-r--r-- | webui/src/pages/bug/MessageHistoryDialog.tsx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/webui/src/pages/bug/MessageEditHistory.graphql b/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<string | false>('panel0'); - const { loading, error, data } = useMessageEditHistoryQuery({ + const { loading, error, data } = useMessageHistoryQuery({ variables: { bugIdPrefix: bugId }, }); if (loading) { |