mirror of https://github.com/VERT-sh/VERT.git
fix: "set all to" enabled with incompatible files
This commit is contained in:
parent
616f2a51d8
commit
39a6801376
|
|
@ -74,8 +74,9 @@
|
||||||
{m["convert.panel.set_all_to"]()}
|
{m["convert.panel.set_all_to"]()}
|
||||||
</p>
|
</p>
|
||||||
<div class="w-48 md:max-w-[6.5rem]">
|
<div class="w-48 md:max-w-[6.5rem]">
|
||||||
|
<!-- check if all files have the same converters -->
|
||||||
<!-- video and audio together still have this dropdown disabled because audio has just ffmpeg (video has vertd & ffmpeg), even tho it can convert between video and audio -->
|
<!-- video and audio together still have this dropdown disabled because audio has just ffmpeg (video has vertd & ffmpeg), even tho it can convert between video and audio -->
|
||||||
{#if files.files.length > 0 && files.files.every((f) => JSON.stringify(f.converters) === JSON.stringify(files.files[0].converters))}
|
{#if files.files.length > 0 && files.files.every((f) => f.converters.length) && files.files.every((f) => JSON.stringify(f.converters) === JSON.stringify(files.files[0].converters))}
|
||||||
<FormatDropdown
|
<FormatDropdown
|
||||||
onselect={(r) =>
|
onselect={(r) =>
|
||||||
files.files.forEach((f) => {
|
files.files.forEach((f) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue