aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/list
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/list
parentaf8216cf35855c39787c920316308a313ceea2c2 (diff)
downloadgit-bug-511ef0105cbc6a08298cd63320283bf41090d4e3.tar.gz
Webui: use grahql response to create labels colors
Diffstat (limited to 'webui/src/list')
-rw-r--r--webui/src/list/BugRow.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/webui/src/list/BugRow.js b/webui/src/list/BugRow.js
index e82d81db..81cccc5e 100644
--- a/webui/src/list/BugRow.js
+++ b/webui/src/list/BugRow.js
@@ -70,7 +70,7 @@ function BugRow({ bug }) {
{bug.labels.length > 0 && (
<span className={classes.labels}>
{bug.labels.map(l => (
- <Label key={l} label={l} />
+ <Label key={l.name} label={l} />
))}
</span>
)}
@@ -94,7 +94,14 @@ BugRow.fragment = gql`
title
status
createdAt
- labels
+ labels {
+ name
+ color {
+ R
+ G
+ B
+ }
+ }
author {
name
displayName