Skip to content
Snippets Groups Projects
Commit 7e8696b2 authored by Christos's avatar Christos
Browse files

Merge branch 'disable-comment-buttons' into 'master'

disable comment buttons

See merge request !131
parents 323af912 a4bf6504
No related branches found
No related tags found
1 merge request!131disable comment buttons
......@@ -7,9 +7,10 @@ import { DocumentHelpers } from 'wax-prosemirror-utilities';
const SinlgeCommentRow = styled.div`
padding: 4px;
border-bottom: 1px solid #ffab20;
cursor: pointer;
`;
export default ({ comment, activeView, user }) => {
export default ({ comment, activeView, user, active }) => {
const commentInput = useRef(null);
const [commentAnnotation, setCommentAnnotation] = useState(comment);
const [commentInputValue, setcommentInputValue] = useState('');
......@@ -117,11 +118,20 @@ export default ({ comment, activeView, user }) => {
}}
autoFocus
value={commentInputValue}
disabled={!active}
/>
<button type="button" onClick={event => saveComment(event)}>
<button
disabled={!active}
type="button"
onClick={event => saveComment(event)}
>
Post
</button>
<button type="button" onClick={event => resolveComment(event)}>
<button
disabled={!active}
type="button"
onClick={event => resolveComment(event)}
>
Resolve
</button>
</>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment