mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	changed import progress notification so it shows up for drag & drop as well
This commit is contained in:
		@@ -30,9 +30,9 @@ const dragAndDropSetup = {
 | 
			
		||||
        if (dataTransfer && dataTransfer.files && dataTransfer.files.length > 0) {
 | 
			
		||||
            const files = [...dataTransfer.files]; // chrome has issue that dataTransfer.files empties after async operation
 | 
			
		||||
 | 
			
		||||
            const importDialog = await import('../dialogs/import.js');
 | 
			
		||||
            const importService = await import('./import.js');
 | 
			
		||||
 | 
			
		||||
            importDialog.uploadFiles(node.data.noteId, files, {
 | 
			
		||||
            importService.uploadFiles(node.data.noteId, files, {
 | 
			
		||||
                safeImport: true,
 | 
			
		||||
                shrinkImages: true,
 | 
			
		||||
                textImportedAsText: true,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user