diff options
author | Sascha <GlancingMind@outlook.com> | 2021-03-17 22:28:45 +0100 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-03-19 17:52:32 +0100 |
commit | 9fb033ef191a23b1338e0fdfe8ab1f462165b99d (patch) | |
tree | 8d42f7eff77db4227857b9e3cdb02d375ccff4b9 /webui/src/pages/bug/Message.tsx | |
parent | d6c3ffa984c57a546d437d9be989077d824fac46 (diff) | |
download | git-bug-9fb033ef191a23b1338e0fdfe8ab1f462165b99d.tar.gz |
Return of new comment works...
...but the types are quite hacky
Diffstat (limited to 'webui/src/pages/bug/Message.tsx')
-rw-r--r-- | webui/src/pages/bug/Message.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webui/src/pages/bug/Message.tsx b/webui/src/pages/bug/Message.tsx index 08a55dc6..7455104b 100644 --- a/webui/src/pages/bug/Message.tsx +++ b/webui/src/pages/bug/Message.tsx @@ -78,7 +78,6 @@ function Message({ bug, op: comment }: Props) { const editComment = (id: String) => { switchToEditMode(true); - console.log(id); }; function readMessageView() { @@ -118,13 +117,18 @@ function Message({ bug, op: comment }: Props) { switchToEditMode(false); }; + const onPostSubmit = (comments: AddCommentFragment | CreateFragment) => { + console.log('posted: ' + comments.message); + switchToEditMode(false); + }; + return ( <div className={classes.bubble}> <EditCommentForm bug={bug} onCancelClick={cancelEdition} // Close edit view after submitted changes - onPostSubmit={cancelEdition} + onPostSubmit={onPostSubmit} comment={comment} /> </div> |