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/list/BugRow.js | |
parent | af8216cf35855c39787c920316308a313ceea2c2 (diff) | |
download | git-bug-511ef0105cbc6a08298cd63320283bf41090d4e3.tar.gz |
Webui: use grahql response to create labels colors
Diffstat (limited to 'webui/src/list/BugRow.js')
-rw-r--r-- | webui/src/list/BugRow.js | 11 |
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 |