diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-17 12:43:17 +0200 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2019-05-22 20:41:03 +0200 |
commit | aa6247ce870075922a1309718e8fafee321ef51d (patch) | |
tree | 1a4b92ce3ba7754522cf1018e712eb59067661e2 /webui/src/bug | |
parent | 511ef0105cbc6a08298cd63320283bf41090d4e3 (diff) | |
download | git-bug-aa6247ce870075922a1309718e8fafee321ef51d.tar.gz |
webui: Add Label gql fragment
Diffstat (limited to 'webui/src/bug')
-rw-r--r-- | webui/src/bug/Bug.js | 8 | ||||
-rw-r--r-- | webui/src/bug/LabelChange.js | 15 |
2 files changed, 5 insertions, 18 deletions
diff --git a/webui/src/bug/Bug.js b/webui/src/bug/Bug.js index 3e003567..1b19149d 100644 --- a/webui/src/bug/Bug.js +++ b/webui/src/bug/Bug.js @@ -91,12 +91,7 @@ Bug.fragment = gql` status title labels { - name - color { - R - G - B - } + ...Label } createdAt author { @@ -105,6 +100,7 @@ Bug.fragment = gql` displayName } } + ${Label.fragment} `; export default Bug; diff --git a/webui/src/bug/LabelChange.js b/webui/src/bug/LabelChange.js index 73c05c43..1e05b4a6 100644 --- a/webui/src/bug/LabelChange.js +++ b/webui/src/bug/LabelChange.js @@ -50,23 +50,14 @@ LabelChange.fragment = gql` displayName } added { - name - color { - R - G - B - } + ...Label } removed { - name - color { - R - G - B - } + ...Label } } } + ${Label.fragment} `; export default LabelChange; |