mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Desktop: Added markup language to property dialog
This commit is contained in:
parent
490db0db62
commit
687e308a73
@ -33,6 +33,7 @@ class NotePropertiesDialog extends React.Component {
|
||||
location: _('Location'),
|
||||
source_url: _('URL'),
|
||||
revisionsLink: _('Note History'),
|
||||
markup_language: _('Markup'),
|
||||
};
|
||||
}
|
||||
|
||||
@ -82,6 +83,7 @@ class NotePropertiesDialog extends React.Component {
|
||||
}
|
||||
|
||||
formNote.revisionsLink = note.id;
|
||||
formNote.markup_language = Note.markupLanguageToLabel(note.markup_language);
|
||||
formNote.id = note.id;
|
||||
|
||||
return formNote;
|
||||
@ -292,7 +294,7 @@ class NotePropertiesDialog extends React.Component {
|
||||
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)};
|
||||
editCompIcon = 'fa-edit';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user