1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

fix(web): drag and drop with non english language (#10040)

This commit is contained in:
Michel Heusschen 2024-06-08 11:57:46 +02:00 committed by GitHub
parent 4ec47b4186
commit 78b10bbcc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View file

@ -5,7 +5,6 @@
import { dragAndDropFilesStore } from '$lib/stores/drag-and-drop-files.store';
import { fileUploadHandler } from '$lib/utils/file-uploader';
import { isAlbumsRoute, isSharedLinkRoute } from '$lib/utils/navigation';
import { t } from 'svelte-i18n';
$: albumId = isAlbumsRoute($page.route?.id) ? $page.params.albumId : undefined;
$: isShare = isSharedLinkRoute($page.route?.id);
@ -13,7 +12,7 @@
let dragStartTarget: EventTarget | null = null;
const onDragEnter = (e: DragEvent) => {
if (e.dataTransfer && e.dataTransfer.types.includes($t('files'))) {
if (e.dataTransfer && e.dataTransfer.types.includes('Files')) {
dragStartTarget = e.target;
}
};

View file

@ -450,7 +450,6 @@
"file_name": "File name",
"file_name_or_extension": "File name or extension",
"filename": "Filename",
"files": "Files",
"filetype": "Filetype",
"filter_people": "Filter people",
"fix_incorrect_match": "Fix incorrect match",