aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/bug/TimelineQuery.js
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-15 21:49:31 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-15 21:49:31 +0200
commitcf9e83e74dc5f91b0e13fbdb79848925e68809a3 (patch)
treee3b832cf0f5f6e4f4756f4e757babda22d9091e0 /webui/src/bug/TimelineQuery.js
parent1984d4343db770fc2c8e251a81f1ab997a4c4d5e (diff)
downloadgit-bug-cf9e83e74dc5f91b0e13fbdb79848925e68809a3.tar.gz
webui: display label changes in the timeline + cleaning evrywhere
Diffstat (limited to 'webui/src/bug/TimelineQuery.js')
-rw-r--r--webui/src/bug/TimelineQuery.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/webui/src/bug/TimelineQuery.js b/webui/src/bug/TimelineQuery.js
index e773aac0..ad4d00b0 100644
--- a/webui/src/bug/TimelineQuery.js
+++ b/webui/src/bug/TimelineQuery.js
@@ -2,6 +2,7 @@ import CircularProgress from '@material-ui/core/CircularProgress'
import gql from 'graphql-tag'
import React from 'react'
import { Query } from 'react-apollo'
+import LabelChange from './LabelChange'
import Timeline from './Timeline'
import Message from './Message'
@@ -13,6 +14,7 @@ const QUERY = gql`
nodes {
...Create
...Comment
+ ...LabelChange
}
pageInfo {
hasNextPage
@@ -24,10 +26,11 @@ const QUERY = gql`
}
${Message.createFragment}
${Message.commentFragment}
+ ${LabelChange.fragment}
`
const TimelineQuery = ({id}) => (
- <Query query={QUERY} variables={{id}}>
+ <Query query={QUERY} variables={{id, first: 100}}>
{({loading, error, data, fetchMore}) => {
if (loading) return <CircularProgress/>
if (error) return <p>Error: {error}</p>