Skip to content

Commit e811db3

Browse files
committed
only show "Open note on server" for electron app
1 parent a1d38b6 commit e811db3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/client/src/widgets/ribbon/NoteActions.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not
9292
<CommandItem command="openNoteExternally" icon="bx bx-file-find" disabled={isSearchOrBook || !isElectron} text={t("note_actions.open_note_externally")} title={t("note_actions.open_note_externally_title")} />
9393
<CommandItem command="openNoteCustom" icon="bx bx-customize" disabled={isSearchOrBook || isMac || !isElectron} text={t("note_actions.open_note_custom")} />
9494
<CommandItem command="showNoteSource" icon="bx bx-code" disabled={!hasSource} text={t("note_actions.note_source")} />
95-
<CommandItem command="openNoteOnServer" icon="bx bx-world" disabled={!syncServerHost} text={t("note_actions.open_note_on_server")} />
95+
{(syncServerHost && isElectron) &&
96+
<CommandItem command="openNoteOnServer" icon="bx bx-world" disabled={!syncServerHost} text={t("note_actions.open_note_on_server")} />
97+
}
9698
<FormDropdownDivider />
9799

98100
<CommandItem command="forceSaveRevision" icon="bx bx-save" disabled={isInOptionsOrHelp} text={t("note_actions.save_revision")} />

0 commit comments

Comments
 (0)