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={() => {
|
on:dragend={() => {
|
||||||
draggedOver = false;
|
draggedOver = false;
|
||||||
}}
|
}}
|
||||||
|
on:dragleave={() => {
|
||||||
|
draggedOver = false;
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
|
@ -3,7 +3,7 @@
|
||||||
import { openURL } from "$lib/download";
|
import { openURL } from "$lib/download";
|
||||||
import { t } from "$lib/i18n/translations";
|
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";
|
import OpenFileButton from "$components/misc/FileReceiver.svelte";
|
||||||
|
|
||||||
let draggedOver = false;
|
let draggedOver = false;
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DragDropArea id="remux-container" bind:draggedOver bind:file>
|
<DropReceiver id="remux-container" bind:draggedOver bind:file>
|
||||||
<div id="remux-inner">
|
<div id="remux-inner">
|
||||||
<OpenFileButton
|
<OpenFileButton
|
||||||
bind:draggedOver
|
bind:draggedOver
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
{$t("remux.description")}
|
{$t("remux.description")}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DragDropArea>
|
</DropReceiver>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
:global(#remux-container) {
|
:global(#remux-container) {
|
||||||
|
|
Loading…
Reference in a new issue