diff --git a/app/components/Sharing/Document/AccessControlList.tsx b/app/components/Sharing/Document/AccessControlList.tsx index 72924088c6..22d66641ea 100644 --- a/app/components/Sharing/Document/AccessControlList.tsx +++ b/app/components/Sharing/Document/AccessControlList.tsx @@ -119,7 +119,27 @@ export const AccessControlList = observer( maxHeight: maxHeight ? maxHeight - publicAccessHeight : undefined, }} > - {collection && canCollection.readDocument ? ( + {document.isDraft ? ( + <> + } + title={document.createdBy?.name} + actions={ + + {t("Can edit")} + + } + /> + {showLoading ? ( + + ) : ( + + )} + + ) : collection && canCollection.readDocument ? ( <> {collection.permission ? ( )} - ) : document.isDraft ? ( - <> - } - title={document.createdBy?.name} - actions={ - - {t("Can edit")} - - } - /> - {showLoading ? ( - - ) : ( - - )} - ) : ( <> {showLoading ? ( diff --git a/app/components/Sharing/Document/PublicAccess.tsx b/app/components/Sharing/Document/PublicAccess.tsx index a5388082db..72a8e5ff52 100644 --- a/app/components/Sharing/Document/PublicAccess.tsx +++ b/app/components/Sharing/Document/PublicAccess.tsx @@ -144,9 +144,10 @@ function PublicAccess( toast.success(t("Public link copied to clipboard")); }, [t]); - const shareUrl = sharedParent?.url - ? `${sharedParent.url}${document.url}` - : (share?.url ?? ""); + const shareUrl = + sharedParent?.url && !document.isDraft + ? `${sharedParent.url}${document.url}` + : (share?.url ?? ""); const copyButton = ( @@ -290,7 +291,7 @@ function PublicAccess( )} - {sharedParent?.published ? ( + {sharedParent?.published && !document.isDraft ? ( {copyButton} diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 279f18d1fa..48ea2a6817 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -436,10 +436,10 @@ "Editor": "Editor", "Suggestions for invitation": "Suggestions for invitation", "No matches": "No matches", + "Created the document": "Created the document", "Can view": "Can view", "Everyone in the collection": "Everyone in the collection", "You have full access": "You have full access", - "Created the document": "Created the document", "Other people": "Other people", "Other workspace members may have access": "Other workspace members may have access", "This document may be shared with more workspace members through a parent document or collection you do not have access to": "This document may be shared with more workspace members through a parent document or collection you do not have access to",