diff options
author | Michael Muré <batolettre@gmail.com> | 2019-03-31 21:39:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-31 21:39:14 +0200 |
commit | dcf973867496273df0c2e8f59c5ee113a4c08bb1 (patch) | |
tree | 6f5cf130478dba3e11a7f964e29f35be0d04312f /webui/src/bug/TimelineQuery.js | |
parent | 9bc5543206ed7cba02c0bb39165c3c4db149b066 (diff) | |
parent | 22089b5e628f1356e517d24d0346a8ec2def97fc (diff) | |
download | git-bug-dcf973867496273df0c2e8f59c5ee113a4c08bb1.tar.gz |
Merge pull request #104 from MichaelMure/sandhose/webui-timeline
Use Timeline API instead of raw operations
Diffstat (limited to 'webui/src/bug/TimelineQuery.js')
-rw-r--r-- | webui/src/bug/TimelineQuery.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/webui/src/bug/TimelineQuery.js b/webui/src/bug/TimelineQuery.js index 78658a6f..ebb20f9d 100644 --- a/webui/src/bug/TimelineQuery.js +++ b/webui/src/bug/TimelineQuery.js @@ -12,13 +12,13 @@ const QUERY = gql` query($id: String!, $first: Int = 10, $after: String) { defaultRepository { bug(prefix: $id) { - operations(first: $first, after: $after) { + timeline(first: $first, after: $after) { nodes { - ...Create - ...Comment ...LabelChange - ...SetTitle ...SetStatus + ...SetTitle + ...AddComment + ...Create } pageInfo { hasNextPage @@ -42,7 +42,7 @@ const TimelineQuery = ({ id }) => ( if (error) return <p>Error: {error}</p>; return ( <Timeline - ops={data.defaultRepository.bug.operations.nodes} + ops={data.defaultRepository.bug.timeline.nodes} fetchMore={fetchMore} /> ); |