From 971339ca9abc2c4d66cd2536998d7dcca11c46a9 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 17 Jun 2018 17:12:24 +0100 Subject: [PATCH] Electron: Fixes #630: PDF export in context menu --- ElectronClient/app/gui/NoteList.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ElectronClient/app/gui/NoteList.jsx b/ElectronClient/app/gui/NoteList.jsx index 42338aa79..d873c1f89 100644 --- a/ElectronClient/app/gui/NoteList.jsx +++ b/ElectronClient/app/gui/NoteList.jsx @@ -119,6 +119,13 @@ class NoteListComponent extends React.Component { }})); } + exportMenu.append(new MenuItem({ label: 'PDF - ' + _('PDF File') , click: () => { + this.props.dispatch({ + type: 'WINDOW_COMMAND', + name: 'exportPdf', + }); + }})); + const exportMenuItem = new MenuItem({label: _('Export'), submenu: exportMenu}); menu.append(exportMenuItem);