diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-16 20:46:30 +0200 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2019-05-22 20:38:00 +0200 |
commit | 511ef0105cbc6a08298cd63320283bf41090d4e3 (patch) | |
tree | 665a66ebb6aca07a7e82364161263f10b8075e33 /webui/src/bug/Bug.js | |
parent | af8216cf35855c39787c920316308a313ceea2c2 (diff) | |
download | git-bug-511ef0105cbc6a08298cd63320283bf41090d4e3.tar.gz |
Webui: use grahql response to create labels colors
Diffstat (limited to 'webui/src/bug/Bug.js')
-rw-r--r-- | webui/src/bug/Bug.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/webui/src/bug/Bug.js b/webui/src/bug/Bug.js index 829a4af2..3e003567 100644 --- a/webui/src/bug/Bug.js +++ b/webui/src/bug/Bug.js @@ -74,7 +74,7 @@ function Bug({ bug }) { <ul className={classes.labelList}> {bug.labels.map(l => ( <li className={classes.label}> - <Label label={l} key={l} /> + <Label label={l} key={l.name} /> </li> ))} </ul> @@ -90,7 +90,14 @@ Bug.fragment = gql` humanId status title - labels + labels { + name + color { + R + G + B + } + } createdAt author { email |