From 225da3728fce6fbc03dd7fdce06d42ae382248df Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sun, 20 Dec 2020 16:41:31 +0100 Subject: [PATCH] Minor edits --- src/editor/widgets/comment/Comment.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/editor/widgets/comment/Comment.jsx b/src/editor/widgets/comment/Comment.jsx index ef48757..8560faa 100644 --- a/src/editor/widgets/comment/Comment.jsx +++ b/src/editor/widgets/comment/Comment.jsx @@ -24,6 +24,7 @@ const Comment = props => { props.onDelete(props.body); setIsMenuVisible(false); } + const onUpdateComment = evt => { props.onUpdate(props.body, { ...props.body, value: evt.target.value }); } @@ -43,6 +44,7 @@ const Comment = props => { } + return props.readOnly ? (
{props.body.value}
@@ -57,13 +59,15 @@ const Comment = props => { onSaveAndClose={props.onSaveAndClose} /> { creatorInfo } - { props.purpose == true && + + { props.purpose && } +
setIsMenuVisible(!isMenuVisible)}>