aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/bug/Timeline.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/Timeline.js
parent1984d4343db770fc2c8e251a81f1ab997a4c4d5e (diff)
downloadgit-bug-cf9e83e74dc5f91b0e13fbdb79848925e68809a3.tar.gz
webui: display label changes in the timeline + cleaning evrywhere
Diffstat (limited to 'webui/src/bug/Timeline.js')
-rw-r--r--webui/src/bug/Timeline.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/webui/src/bug/Timeline.js b/webui/src/bug/Timeline.js
index 0c4100ec..72c07121 100644
--- a/webui/src/bug/Timeline.js
+++ b/webui/src/bug/Timeline.js
@@ -1,5 +1,6 @@
import { withStyles } from '@material-ui/core/styles'
import React from 'react'
+import LabelChange from './LabelChange'
import Message from './Message'
const styles = theme => ({
@@ -26,9 +27,11 @@ class Timeline extends React.Component {
{ ops.map((op, index) => {
switch (op.__typename) {
case 'CreateOperation':
- return <Message key={index} message={op}/>
+ return <Message key={index} op={op}/>
case 'AddCommentOperation':
- return <Message key={index} message={op}/>
+ return <Message key={index} op={op}/>
+ case 'LabelChangeOperation':
+ return <LabelChange key={index} op={op}/>
default:
console.log('unsupported operation type ' + op.__typename)