mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-23 19:26:26 +01:00
web/remux: rename DropReceiver component
This commit is contained in:
parent
af428bc964
commit
1fd2b72075
2 changed files with 6 additions and 3 deletions
|
@ -30,6 +30,9 @@
|
|||
on:dragend={() => {
|
||||
draggedOver = false;
|
||||
}}
|
||||
on:dragleave={() => {
|
||||
draggedOver = false;
|
||||
}}
|
||||
>
|
||||
<slot></slot>
|
||||
</div>
|
|
@ -3,7 +3,7 @@
|
|||
import { openURL } from "$lib/download";
|
||||
import { t } from "$lib/i18n/translations";
|
||||
|
||||
import DragDropArea from "$components/misc/DragDropArea.svelte";
|
||||
import DropReceiver from "$components/misc/DropReceiver.svelte";
|
||||
import OpenFileButton from "$components/misc/FileReceiver.svelte";
|
||||
|
||||
let draggedOver = false;
|
||||
|
@ -30,7 +30,7 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<DragDropArea id="remux-container" bind:draggedOver bind:file>
|
||||
<DropReceiver id="remux-container" bind:draggedOver bind:file>
|
||||
<div id="remux-inner">
|
||||
<OpenFileButton
|
||||
bind:draggedOver
|
||||
|
@ -50,7 +50,7 @@
|
|||
{$t("remux.description")}
|
||||
</div>
|
||||
</div>
|
||||
</DragDropArea>
|
||||
</DropReceiver>
|
||||
|
||||
<style>
|
||||
:global(#remux-container) {
|
||||
|
|
Loading…
Reference in a new issue