1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-30 08:26:59 +02:00

Desktop: Added markup language to property dialog

This commit is contained in:
Laurent Cozic 2019-07-17 22:49:40 +01:00
parent 490db0db62
commit 687e308a73

View File

@ -33,6 +33,7 @@ class NotePropertiesDialog extends React.Component {
location: _('Location'), location: _('Location'),
source_url: _('URL'), source_url: _('URL'),
revisionsLink: _('Note History'), revisionsLink: _('Note History'),
markup_language: _('Markup'),
}; };
} }
@ -82,6 +83,7 @@ class NotePropertiesDialog extends React.Component {
} }
formNote.revisionsLink = note.id; formNote.revisionsLink = note.id;
formNote.markup_language = Note.markupLanguageToLabel(note.markup_language);
formNote.id = note.id; formNote.id = note.id;
return formNote; return formNote;
@ -292,7 +294,7 @@ class NotePropertiesDialog extends React.Component {
controlComp = <div style={Object.assign({}, theme.textStyle, {display: 'inline-block'})}>{displayedValue}</div> controlComp = <div style={Object.assign({}, theme.textStyle, {display: 'inline-block'})}>{displayedValue}</div>
} }
if (key !== 'id' && key !== 'revisionsLink') { if (['id', 'revisionsLink', 'markup_language'].indexOf(key) < 0) {
editCompHandler = () => {this.editPropertyButtonClick(key, value)}; editCompHandler = () => {this.editPropertyButtonClick(key, value)};
editCompIcon = 'fa-edit'; editCompIcon = 'fa-edit';
} }