aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/bug/Bug.js
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-05-16 20:46:30 +0200
committerQuentin Gliech <quentingliech@gmail.com>2019-05-22 20:38:00 +0200
commit511ef0105cbc6a08298cd63320283bf41090d4e3 (patch)
tree665a66ebb6aca07a7e82364161263f10b8075e33 /webui/src/bug/Bug.js
parentaf8216cf35855c39787c920316308a313ceea2c2 (diff)
downloadgit-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.js11
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