diff --git a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx index 94aa6b314..d42617dae 100644 --- a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx +++ b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx @@ -29,7 +29,7 @@ export default function BasicPropertiesTab({ note }: TabContext) { return (
- + {!isNewLayout && } {!isNewLayout && } {!isNewLayout && } {!isNewLayout && } diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx index d4b5e235a..282bb6b9c 100644 --- a/apps/client/src/widgets/ribbon/NoteActions.tsx +++ b/apps/client/src/widgets/ribbon/NoteActions.tsx @@ -18,6 +18,7 @@ import { useIsNoteReadOnly, useNoteContext, useNoteLabel, useNoteLabelBoolean, u import { ParentComponent } from "../react/react_utils"; import { isExperimentalFeatureEnabled } from "../../services/experimental_features"; import { useNoteBookmarkState, useShareState } from "./BasicPropertiesTab"; +import protected_session from "../../services/protected_session"; const isNewLayout = isExperimentalFeatureEnabled("new-layout"); @@ -120,6 +121,7 @@ function NoteBasicProperties({ note }: { note: FNote }) { const [ isBookmarked, setIsBookmarked ] = useNoteBookmarkState(note); const [ isShared, switchShareState ] = useShareState(note); const [ isTemplate, setIsTemplate ] = useNoteLabelBoolean(note, "template"); + const isProtected = useNoteProperty(note, "isProtected"); return <> + protected_session.protectNote(note.noteId, shouldProtect, false)} + /> ; } @@ -154,7 +161,7 @@ function EditabilityDropdown({ note }: { note: FNote }) { } 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")}