diff --git a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx
index 0f186998b..94aa6b314 100644
--- a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx
+++ b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx
@@ -30,7 +30,7 @@ export default function BasicPropertiesTab({ note }: TabContext) {
-
+ {!isNewLayout &&
}
{!isNewLayout &&
}
{!isNewLayout &&
}
{!isNewLayout &&
}
@@ -190,7 +190,7 @@ function EditabilitySelect({ note }: { note?: FNote | null }) {
}}
/>
- )
+ );
}
function BookmarkSwitch({ note }: { note?: FNote | null }) {
diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx
index 321ccda89..22e913b16 100644
--- a/apps/client/src/widgets/ribbon/NoteActions.tsx
+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx
@@ -125,9 +125,28 @@ function NoteBasicProperties({ note }: { note: FNote }) {
+
>;
}
+function EditabilityDropdown({ note }: { note: FNote }) {
+ const [ readOnly, setReadOnly ] = useNoteLabelBoolean(note, "readOnly");
+ const [ autoReadOnlyDisabled, setAutoReadOnlyDisabled ] = useNoteLabelBoolean(note, "autoReadOnlyDisabled");
+
+ function setState(readOnly: boolean, autoReadOnlyDisabled: boolean) {
+ setReadOnly(readOnly);
+ setAutoReadOnlyDisabled(autoReadOnlyDisabled);
+ }
+
+ return (
+
+ setState(false, false)} description={t("editability_select.note_is_editable")}>{t("editability_select.auto")}
+ setState(true, false)} description={t("editability_select.note_is_read_only")}>{t("editability_select.read_only")}
+ setState(false, true)} description={t("editability_select.note_is_always_editable")}>{t("editability_select.always_editable")}
+
+ );
+}
+
function DevelopmentActions({ note, noteContext }: { note: FNote, noteContext?: NoteContext }) {
return (