mirror of https://github.com/VERT-sh/VERT.git
fix: show red in convert page w/ all videos
This commit is contained in:
parent
8529f9594e
commit
6fb6ce3b68
|
@ -36,13 +36,16 @@
|
||||||
(file) => file.converter?.name === "ffmpeg",
|
(file) => file.converter?.name === "ffmpeg",
|
||||||
);
|
);
|
||||||
const allImages = files.files.every(
|
const allImages = files.files.every(
|
||||||
(file) => file.converter?.name !== "ffmpeg",
|
(file) => file.converter?.name !== "ffmpeg" && file.converter?.name !== "vertd",
|
||||||
|
);
|
||||||
|
const allVideos = files.files.every(
|
||||||
|
(file) => file.converter?.name === "vertd",
|
||||||
);
|
);
|
||||||
|
|
||||||
if (files.files.length === 0 || (!allAudio && !allImages)) {
|
if (files.files.length === 0 || (!allAudio && !allImages && !allVideos)) {
|
||||||
gradientColor.set("");
|
gradientColor.set("");
|
||||||
} else {
|
} else {
|
||||||
gradientColor.set(allAudio ? "purple" : "blue");
|
gradientColor.set(allAudio ? "purple" : allVideos ? "red" : "blue");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue