Skip to content

Commit

Permalink
#106 Message about editing
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Dec 30, 2020
1 parent 9ad1b7d commit 780fd3e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/DocumentForm/DocumentForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,11 @@ const DocumentForm = ({
onBlur={props.handleBlur}
disableDraft={data && data.state !== 'draft'}
/>
<small className="text-muted">
* Only documents created using &ldquo;Paste or
type directly into the form&rdquo;
can be edited, even in Draft mode.
</small>
</Card.Body>
</Card>
<Row className="mt-3">
Expand Down
9 changes: 8 additions & 1 deletion src/components/DocumentStatusSelect/DocumentStatusSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,14 @@ const DocumentStatusSelect = ({
Me
</td>
<td><GreenCheck /></td>
<td>{(values.state === 'draft') ? (<GreenCheck />) : (<RedX />)}</td>
<td>
{(values.state === 'draft') ? (
<>
<GreenCheck />
*
</>
) : (<RedX />)}
</td>
<td>{(values.state === 'published') ? (<GreenCheck />) : (<RedX />)}</td>
</tr>
{!(values.groups.length === 1 && values.groups[0] === '') && (
Expand Down

0 comments on commit 780fd3e

Please sign in to comment.