From ff8f230555484ac782a7f01ebf8b073a2cc2c6ad Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 11 Jul 2021 18:08:42 +0100 Subject: [PATCH] Renamed "Share note" to "Publish note" --- .../gui/MainScreen/commands/showShareNoteDialog.ts | 2 +- packages/app-desktop/gui/ShareNoteDialog.tsx | 6 +++--- packages/server/src/routes/index/home.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/app-desktop/gui/MainScreen/commands/showShareNoteDialog.ts b/packages/app-desktop/gui/MainScreen/commands/showShareNoteDialog.ts index df824dcb1..653914a23 100644 --- a/packages/app-desktop/gui/MainScreen/commands/showShareNoteDialog.ts +++ b/packages/app-desktop/gui/MainScreen/commands/showShareNoteDialog.ts @@ -3,7 +3,7 @@ import { _ } from '@joplin/lib/locale'; export const declaration: CommandDeclaration = { name: 'showShareNoteDialog', - label: () => _('Share note...'), + label: () => _('Publish note...'), }; export const runtime = (comp: any): CommandRuntime => { diff --git a/packages/app-desktop/gui/ShareNoteDialog.tsx b/packages/app-desktop/gui/ShareNoteDialog.tsx index 7c6c4aa38..3e4d2ae84 100644 --- a/packages/app-desktop/gui/ShareNoteDialog.tsx +++ b/packages/app-desktop/gui/ShareNoteDialog.tsx @@ -138,7 +138,7 @@ export function ShareNoteDialog(props: Props) { continue; } - reg.logger().error('ShareNoteDialog: Cannot share note:', error); + reg.logger().error('ShareNoteDialog: Cannot publish note:', error); setSharesState('idle'); alert(JoplinServerApi.connectionErrorMessage(error)); @@ -165,7 +165,7 @@ export function ShareNoteDialog(props: Props) { const renderNote = (note: NoteEntity) => { const unshareButton = !props.shares.find(s => s.note_id === note.id) ? null : ( -
{statusMessage(sharesState)}
diff --git a/packages/server/src/routes/index/home.ts b/packages/server/src/routes/index/home.ts index b4400312f..26e2518b7 100644 --- a/packages/server/src/routes/index/home.ts +++ b/packages/server/src/routes/index/home.ts @@ -47,7 +47,7 @@ router.get('home', async (_path: SubPath, ctx: AppContext) => { show: true, }, { - label: 'Can Share Note', + label: 'Can Publish Note', value: yesOrNo(true), show: true, },