1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Electron: Resolves #237: Export to PDF and print option

This commit is contained in:
Laurent Cozic
2018-03-12 18:01:47 +00:00
parent dbe1833f92
commit eef106c99b
6 changed files with 104 additions and 12 deletions

View File

@@ -81,6 +81,17 @@ class InteropService {
this.modules_ = importModules.concat(exportModules);
this.modules_ = this.modules_.map((a) => {
a.fullLabel = function(moduleSource = null) {
const label = [this.format.toUpperCase() + ' - ' + this.description];
if (moduleSource && this.sources.length > 1) {
label.push('(' + (moduleSource === 'file' ? _('File') : _('Directory')) + ')');
}
return label.join(' ');
};
return a;
});
return this.modules_;
}