1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-03-17 20:48:11 +02:00

Fixes from review.

This commit is contained in:
Hubert 2023-08-29 14:40:22 -03:00
parent 8f039f917d
commit 060e65760d
3 changed files with 4 additions and 4 deletions

View File

@ -403,7 +403,7 @@ function useMenu(props: Props) {
label: module.fullLabel(moduleSource),
click: () => onImportModuleClickRef.current(module, moduleSource),
});
if (module.separator) importItems.push({ type: 'separator' });
if (module.separatorAfter) importItems.push({ type: 'separator' });
}
}
}

View File

@ -63,7 +63,7 @@ export default class InteropService {
format: 'raw',
sources: [FileSystemItem.Directory],
description: _('Joplin Export Directory'),
separator: true,
separatorAfter: true,
}, () => new InteropService_Importer_Raw()),
makeImportModule({

View File

@ -10,7 +10,7 @@ interface BaseMetadata {
fileExtensions: string[];
description: string;
isDefault: boolean;
separator: boolean;
separatorAfter: boolean; // this isn't a property of the importer, but of how it should be displayed in the GUI
supportsMobile: boolean;
@ -52,7 +52,7 @@ const defaultBaseMetadata = {
isNoteArchive: true,
supportsMobile: true,
isDefault: false,
separator: false,
separatorAfter: false,
};
const moduleFullLabel = (metadata: ImportMetadata|ExportMetadata, moduleSource: FileSystemItem = null) => {