1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Renamed "Share note" to "Publish note"

This commit is contained in:
Laurent Cozic 2021-07-11 18:08:42 +01:00
parent 1808367d78
commit ff8f230555
3 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import { _ } from '@joplin/lib/locale';
export const declaration: CommandDeclaration = { export const declaration: CommandDeclaration = {
name: 'showShareNoteDialog', name: 'showShareNoteDialog',
label: () => _('Share note...'), label: () => _('Publish note...'),
}; };
export const runtime = (comp: any): CommandRuntime => { export const runtime = (comp: any): CommandRuntime => {

View File

@ -138,7 +138,7 @@ export function ShareNoteDialog(props: Props) {
continue; continue;
} }
reg.logger().error('ShareNoteDialog: Cannot share note:', error); reg.logger().error('ShareNoteDialog: Cannot publish note:', error);
setSharesState('idle'); setSharesState('idle');
alert(JoplinServerApi.connectionErrorMessage(error)); alert(JoplinServerApi.connectionErrorMessage(error));
@ -165,7 +165,7 @@ export function ShareNoteDialog(props: Props) {
const renderNote = (note: NoteEntity) => { const renderNote = (note: NoteEntity) => {
const unshareButton = !props.shares.find(s => s.note_id === note.id) ? null : ( const unshareButton = !props.shares.find(s => s.note_id === note.id) ? null : (
<Button tooltip={_('Unshare note')} iconName="fas fa-share-alt" onClick={() => unshareNoteButton_click({ noteId: note.id })}/> <Button tooltip={_('Unpublish note')} iconName="fas fa-share-alt" onClick={() => unshareNoteButton_click({ noteId: note.id })}/>
); );
// const removeButton = notes.length <= 1 ? null : ( // const removeButton = notes.length <= 1 ? null : (
@ -214,7 +214,7 @@ export function ShareNoteDialog(props: Props) {
function renderContent() { function renderContent() {
return ( return (
<div> <div>
<DialogTitle title={_('Share Notes')}/> <DialogTitle title={_('Publish Notes')}/>
{renderNoteList(notes)} {renderNoteList(notes)}
<button disabled={['creating', 'synchronizing'].indexOf(sharesState) >= 0} style={styles.copyShareLinkButton} onClick={shareLinkButton_click}>{_n('Copy Shareable Link', 'Copy Shareable Links', noteCount)}</button> <button disabled={['creating', 'synchronizing'].indexOf(sharesState) >= 0} style={styles.copyShareLinkButton} onClick={shareLinkButton_click}>{_n('Copy Shareable Link', 'Copy Shareable Links', noteCount)}</button>
<div style={theme.textStyle}>{statusMessage(sharesState)}</div> <div style={theme.textStyle}>{statusMessage(sharesState)}</div>

View File

@ -47,7 +47,7 @@ router.get('home', async (_path: SubPath, ctx: AppContext) => {
show: true, show: true,
}, },
{ {
label: 'Can Share Note', label: 'Can Publish Note',
value: yesOrNo(true), value: yesOrNo(true),
show: true, show: true,
}, },