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),
|
label: module.fullLabel(moduleSource),
|
||||||
click: () => onImportModuleClickRef.current(module, 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',
|
format: 'raw',
|
||||||
sources: [FileSystemItem.Directory],
|
sources: [FileSystemItem.Directory],
|
||||||
description: _('Joplin Export Directory'),
|
description: _('Joplin Export Directory'),
|
||||||
separator: true,
|
separatorAfter: true,
|
||||||
}, () => new InteropService_Importer_Raw()),
|
}, () => new InteropService_Importer_Raw()),
|
||||||
|
|
||||||
makeImportModule({
|
makeImportModule({
|
||||||
|
@ -10,7 +10,7 @@ interface BaseMetadata {
|
|||||||
fileExtensions: string[];
|
fileExtensions: string[];
|
||||||
description: string;
|
description: string;
|
||||||
isDefault: boolean;
|
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;
|
supportsMobile: boolean;
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ const defaultBaseMetadata = {
|
|||||||
isNoteArchive: true,
|
isNoteArchive: true,
|
||||||
supportsMobile: true,
|
supportsMobile: true,
|
||||||
isDefault: false,
|
isDefault: false,
|
||||||
separator: false,
|
separatorAfter: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
const moduleFullLabel = (metadata: ImportMetadata|ExportMetadata, moduleSource: FileSystemItem = null) => {
|
const moduleFullLabel = (metadata: ImportMetadata|ExportMetadata, moduleSource: FileSystemItem = null) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user