mirror of https://github.com/VERT-sh/VERT.git
fix: very big oopsie in file conversion
This commit is contained in:
parent
cecc969e8c
commit
3a2d8b8a50
|
|
@ -12,6 +12,7 @@ class Files {
|
||||||
}[]
|
}[]
|
||||||
>([]);
|
>([]);
|
||||||
public conversionTypes = $state<string[]>([]);
|
public conversionTypes = $state<string[]>([]);
|
||||||
|
public conversionTypesReverse = $derived(this.conversionTypes.reverse());
|
||||||
public beenToConverterPage = $state(false);
|
public beenToConverterPage = $state(false);
|
||||||
public shouldShowAlert = $derived(
|
public shouldShowAlert = $derived(
|
||||||
!this.beenToConverterPage && this.files.length > 0,
|
!this.beenToConverterPage && this.files.length > 0,
|
||||||
|
|
|
||||||
|
|
@ -299,7 +299,9 @@
|
||||||
<Dropdown
|
<Dropdown
|
||||||
options={converter.supportedFormats}
|
options={converter.supportedFormats}
|
||||||
bind:selected={files
|
bind:selected={files
|
||||||
.conversionTypes[i]}
|
.conversionTypes[
|
||||||
|
files.files.length - i - 1
|
||||||
|
]}
|
||||||
onselect={() => {
|
onselect={() => {
|
||||||
file.result = null;
|
file.result = null;
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue