mirror of https://github.com/VERT-sh/VERT.git
feat: remove convert page remembering you've been to it
This commit is contained in:
parent
b495d874b6
commit
72369dd26a
|
@ -12,10 +12,6 @@ class Files {
|
||||||
result?: (IFile & { blobUrl: string; animating: boolean }) | null;
|
result?: (IFile & { blobUrl: string; animating: boolean }) | null;
|
||||||
}[]
|
}[]
|
||||||
>([]);
|
>([]);
|
||||||
public beenToConverterPage = $state(false);
|
|
||||||
public shouldShowAlert = $derived(
|
|
||||||
!this.beenToConverterPage && this.files.length > 0,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Theme {
|
class Theme {
|
||||||
|
|
|
@ -82,8 +82,7 @@
|
||||||
log(["uploader"], `handled ${newLen - oldLen} files`);
|
log(["uploader"], `handled ${newLen - oldLen} files`);
|
||||||
ourFiles = [];
|
ourFiles = [];
|
||||||
|
|
||||||
if (files.files.length > 0 && !files.beenToConverterPage)
|
if (files.files.length > 0) goto("/convert");
|
||||||
goto("/convert");
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -47,8 +47,6 @@
|
||||||
convertersRequired.every((c) => c.ready),
|
convertersRequired.every((c) => c.ready),
|
||||||
);
|
);
|
||||||
|
|
||||||
files.beenToConverterPage = true;
|
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
isSm = window.innerWidth < 640;
|
isSm = window.innerWidth < 640;
|
||||||
window.addEventListener("resize", () => {
|
window.addEventListener("resize", () => {
|
||||||
|
|
Loading…
Reference in New Issue