diff --git a/app/scenes/Document/components/Header.tsx b/app/scenes/Document/components/Header.tsx
index f9061521a..369c9331b 100644
--- a/app/scenes/Document/components/Header.tsx
+++ b/app/scenes/Document/components/Header.tsx
@@ -104,7 +104,6 @@ function DocumentHeader({
const { isDeleted, isTemplate } = document;
const can = usePolicy(document?.id);
const canToggleEmbeds = team?.documentEmbeds;
- const canEdit = can.update && !isEditing;
const toc = (
{appearanceAction}
- {canEdit ? editAction : }
+ {can.update && !isEditing ? editAction : }
>
}
/>
@@ -250,45 +249,56 @@ function DocumentHeader({
disabled={savingIsDisabled}
neutral={isDraft}
>
- {isDraft ? t("Save Draft") : t("Done Editing")}
+ {isDraft ? t("Save draft") : t("Done editing")}
>
)}
- {canEdit && !team?.seamlessEditing && !isRevision && editAction}
- {canEdit && can.createChildDocument && !isRevision && !isMobile && (
-
- (
-
- } {...props} neutral>
- {t("New doc")}
-
-
- )}
- />
-
- )}
- {canEdit && isTemplate && !isDraft && !isRevision && (
-
- }
- as={Link}
- to={newDocumentPath(document.collectionId, {
- templateId: document.id,
- })}
- >
- {t("New from template")}
-
-
- )}
+ {can.update &&
+ !isEditing &&
+ !team?.seamlessEditing &&
+ !isRevision &&
+ editAction}
+ {can.update &&
+ can.createChildDocument &&
+ !isRevision &&
+ !isMobile && (
+
+ (
+
+ } {...props} neutral>
+ {t("New doc")}
+
+
+ )}
+ />
+
+ )}
+ {can.update &&
+ !isEditing &&
+ isTemplate &&
+ !isDraft &&
+ !isRevision && (
+
+ }
+ as={Link}
+ to={newDocumentPath(document.collectionId, {
+ templateId: document.id,
+ })}
+ >
+ {t("New from template")}
+
+
+ )}
{revision && revision.createdAt !== document.updatedAt && (
- {!isEditing && (
- <>
- {!isDeleted && }
-
- (
- }
- {...props}
- borderOnHover
- neutral
- />
- )}
- showToggleEmbeds={canToggleEmbeds}
- showDisplayOptions
+ {!isDeleted && }
+
+ (
+ }
+ {...props}
+ borderOnHover
+ neutral
/>
-
- >
- )}
+ )}
+ showToggleEmbeds={canToggleEmbeds}
+ showDisplayOptions
+ />
+
>
}
/>
diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json
index 3a704b824..a7e05a239 100644
--- a/shared/i18n/locales/en_US/translation.json
+++ b/shared/i18n/locales/en_US/translation.json
@@ -502,8 +502,8 @@
"Switch to dark": "Switch to dark",
"Switch to light": "Switch to light",
"Archived": "Archived",
- "Save Draft": "Save Draft",
- "Done Editing": "Done Editing",
+ "Save draft": "Save draft",
+ "Done editing": "Done editing",
"New from template": "New from template",
"Restore version": "Restore version",
"No history yet": "No history yet",