From cf67c78823bd1e7591c2199d51aa3f3fffed73c4 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 18 Jun 2020 18:44:52 +0100 Subject: Refactor webui changes. Don't use contexts, just raw Apollo, since it's cached anyway. Change "ReadonlyHidden" to "IfLoggedIn". --- webui/src/pages/bug/Bug.tsx | 6 +++--- webui/src/pages/bug/CommentForm.graphql | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'webui/src/pages/bug') diff --git a/webui/src/pages/bug/Bug.tsx b/webui/src/pages/bug/Bug.tsx index 99b9bddd..7057f5a1 100644 --- a/webui/src/pages/bug/Bug.tsx +++ b/webui/src/pages/bug/Bug.tsx @@ -6,7 +6,7 @@ import { makeStyles } from '@material-ui/core/styles'; import Author from 'src/components/Author'; import Date from 'src/components/Date'; import Label from 'src/components/Label'; -import ReadonlyHidden from 'src/layout/ReadonlyHidden'; +import IfLoggedIn from 'src/layout/IfLoggedIn'; import { BugFragment } from './Bug.generated'; import CommentForm from './CommentForm'; @@ -89,11 +89,11 @@ function Bug({ bug }: Props) {
- +
-
+
Labels diff --git a/webui/src/pages/bug/CommentForm.graphql b/webui/src/pages/bug/CommentForm.graphql index f4b61850..33d21193 100644 --- a/webui/src/pages/bug/CommentForm.graphql +++ b/webui/src/pages/bug/CommentForm.graphql @@ -1,7 +1,5 @@ mutation AddComment($input: AddCommentInput!) { addComment(input: $input) { - operation { - id - } + operation { id } } } -- cgit