From 12323b94398daa6cedca36fc2c58a97200092e16 Mon Sep 17 00:00:00 2001 From: Cláudio Silva Date: Fri, 5 Feb 2021 08:45:11 -0300 Subject: Webui 548 (#549) * Commit for #548 * Commit for #548 --- webui/src/pages/bug/CommentForm.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'webui/src/pages/bug') diff --git a/webui/src/pages/bug/CommentForm.tsx b/webui/src/pages/bug/CommentForm.tsx index 128e4d32..c623dabb 100644 --- a/webui/src/pages/bug/CommentForm.tsx +++ b/webui/src/pages/bug/CommentForm.tsx @@ -6,6 +6,7 @@ import { makeStyles, Theme } from '@material-ui/core/styles'; import CommentInput from '../../layout/CommentInput/CommentInput'; import CloseBugButton from 'src/components/CloseBugButton/CloseBugButton'; +import ReopenBugButton from 'src/components/ReopenBugButton/ReopenBugButton'; import { BugFragment } from './Bug.generated'; import { useAddCommentMutation } from './CommentForm.generated'; @@ -83,6 +84,14 @@ function CommentForm({ bug }: Props) { if (issueComment.length > 0) submit(); }; + function getCloseButton() { + return 0} />; + } + + function getReopenButton() { + return 0} />; + } + return (
@@ -92,7 +101,7 @@ function CommentForm({ bug }: Props) { onChange={(comment: string) => setIssueComment(comment)} />
- 0} /> + {bug.status === 'OPEN' ? getCloseButton() : getReopenButton()}