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:
parent
4ec47b4186
commit
78b10bbcc6
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue