diff options
author | Michael Muré <batolettre@gmail.com> | 2022-08-23 15:01:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 15:01:36 +0200 |
commit | 5a70e8b3a2e0fe3d1a1dcd4c24bb6bf64633cb7f (patch) | |
tree | e5382a09a45098672b6d60397eac201617fdd6ec /webui/src/pages/bug | |
parent | 81fd7a5d8b6443e65c861f00a7387c0a3c926c66 (diff) | |
parent | 6ed4b8b7a1185ad278eb2e40b32e859f828233d9 (diff) | |
download | git-bug-5a70e8b3a2e0fe3d1a1dcd4c24bb6bf64633cb7f.tar.gz |
Merge pull request #664 from MichaelMure/combined-id-rework
bug: have a type for combined ids, fix #653
Diffstat (limited to 'webui/src/pages/bug')
-rw-r--r-- | webui/src/pages/bug/BugQuery.graphql | 1 | ||||
-rw-r--r-- | webui/src/pages/bug/EditCommentForm.tsx | 3 | ||||
-rw-r--r-- | webui/src/pages/bug/MessageHistory.graphql | 1 | ||||
-rw-r--r-- | webui/src/pages/bug/TimelineQuery.graphql | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/webui/src/pages/bug/BugQuery.graphql b/webui/src/pages/bug/BugQuery.graphql index cdc4723f..9d4cede8 100644 --- a/webui/src/pages/bug/BugQuery.graphql +++ b/webui/src/pages/bug/BugQuery.graphql @@ -2,6 +2,7 @@ query GetBug($id: String!) { repository { + name bug(prefix: $id) { ...Bug } diff --git a/webui/src/pages/bug/EditCommentForm.tsx b/webui/src/pages/bug/EditCommentForm.tsx index 4da051e6..b265735b 100644 --- a/webui/src/pages/bug/EditCommentForm.tsx +++ b/webui/src/pages/bug/EditCommentForm.tsx @@ -58,9 +58,8 @@ function EditCommentForm({ bug, comment, onCancel, onPostSubmit }: Props) { editComment({ variables: { input: { - prefix: bug.id, + targetPrefix: comment.id, message: message, - target: comment.id, }, }, }).then((result) => { diff --git a/webui/src/pages/bug/MessageHistory.graphql b/webui/src/pages/bug/MessageHistory.graphql index e90eb459..6daab75c 100644 --- a/webui/src/pages/bug/MessageHistory.graphql +++ b/webui/src/pages/bug/MessageHistory.graphql @@ -3,6 +3,7 @@ query MessageHistory($bugIdPrefix: String!) { repository { + name bug(prefix: $bugIdPrefix) { timeline { comments: nodes { diff --git a/webui/src/pages/bug/TimelineQuery.graphql b/webui/src/pages/bug/TimelineQuery.graphql index 6d78ab7f..7c9badfd 100644 --- a/webui/src/pages/bug/TimelineQuery.graphql +++ b/webui/src/pages/bug/TimelineQuery.graphql @@ -6,6 +6,7 @@ query Timeline($id: String!, $first: Int = 10, $after: String) { repository { + name bug(prefix: $id) { timeline(first: $first, after: $after) { nodes { |