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:
parent
8f039f917d
commit
060e65760d
@ -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' });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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({
|
||||
|
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user