From 780fd3efefda79b9e8ca45fc849cf5a95c6a8d7a Mon Sep 17 00:00:00 2001 From: Ben Silverman Date: Wed, 30 Dec 2020 14:28:09 -0500 Subject: [PATCH] #106 Message about editing --- src/components/DocumentForm/DocumentForm.js | 5 +++++ .../DocumentStatusSelect/DocumentStatusSelect.js | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/DocumentForm/DocumentForm.js b/src/components/DocumentForm/DocumentForm.js index 04d01d13..01be5099 100644 --- a/src/components/DocumentForm/DocumentForm.js +++ b/src/components/DocumentForm/DocumentForm.js @@ -545,6 +545,11 @@ const DocumentForm = ({ onBlur={props.handleBlur} disableDraft={data && data.state !== 'draft'} /> + + * Only documents created using “Paste or + type directly into the form” + can be edited, even in Draft mode. + diff --git a/src/components/DocumentStatusSelect/DocumentStatusSelect.js b/src/components/DocumentStatusSelect/DocumentStatusSelect.js index 922bdfcc..206f48e7 100644 --- a/src/components/DocumentStatusSelect/DocumentStatusSelect.js +++ b/src/components/DocumentStatusSelect/DocumentStatusSelect.js @@ -143,7 +143,14 @@ const DocumentStatusSelect = ({ Me - {(values.state === 'draft') ? () : ()} + + {(values.state === 'draft') ? ( + <> + + * + + ) : ()} + {(values.state === 'published') ? () : ()} {!(values.groups.length === 1 && values.groups[0] === '') && (