aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/bug/SetTitle.js
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-03-31 21:39:14 +0200
committerGitHub <noreply@github.com>2019-03-31 21:39:14 +0200
commitdcf973867496273df0c2e8f59c5ee113a4c08bb1 (patch)
tree6f5cf130478dba3e11a7f964e29f35be0d04312f /webui/src/bug/SetTitle.js
parent9bc5543206ed7cba02c0bb39165c3c4db149b066 (diff)
parent22089b5e628f1356e517d24d0346a8ec2def97fc (diff)
downloadgit-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/SetTitle.js')
-rw-r--r--webui/src/bug/SetTitle.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/webui/src/bug/SetTitle.js b/webui/src/bug/SetTitle.js
index 5b17c431..f5c48568 100644
--- a/webui/src/bug/SetTitle.js
+++ b/webui/src/bug/SetTitle.js
@@ -7,6 +7,7 @@ import Date from '../Date';
const styles = theme => ({
main: {
...theme.typography.body2,
+ marginLeft: theme.spacing.unit + 40,
},
bold: {
fontWeight: 'bold',
@@ -16,7 +17,7 @@ const styles = theme => ({
const SetTitle = ({ op, classes }) => {
return (
<div className={classes.main}>
- <Author author={op.author} bold />
+ <Author author={op.author} className={classes.bold} />
<span> changed the title from </span>
<span className={classes.bold}>{op.was}</span>
<span> to </span>
@@ -27,8 +28,8 @@ const SetTitle = ({ op, classes }) => {
};
SetTitle.fragment = gql`
- fragment SetTitle on Operation {
- ... on SetTitleOperation {
+ fragment SetTitle on TimelineItem {
+ ... on SetTitleTimelineItem {
date
author {
name