From 687e308a73fa780684a24d902fba813ee1e9cebd Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 17 Jul 2019 22:49:40 +0100 Subject: [PATCH] Desktop: Added markup language to property dialog --- ElectronClient/app/gui/NotePropertiesDialog.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ElectronClient/app/gui/NotePropertiesDialog.jsx b/ElectronClient/app/gui/NotePropertiesDialog.jsx index 69267b134a..76fe03814e 100644 --- a/ElectronClient/app/gui/NotePropertiesDialog.jsx +++ b/ElectronClient/app/gui/NotePropertiesDialog.jsx @@ -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 =
{displayedValue}
} - if (key !== 'id' && key !== 'revisionsLink') { + if (['id', 'revisionsLink', 'markup_language'].indexOf(key) < 0) { editCompHandler = () => {this.editPropertyButtonClick(key, value)}; editCompIcon = 'fa-edit'; }