fix: disabled set all dropdown

This commit is contained in:
Maya 2025-07-31 21:42:51 +03:00
parent 8acf208dbe
commit 749339c594
No known key found for this signature in database
1 changed files with 9 additions and 3 deletions

View File

@ -52,7 +52,10 @@
<p>{m["convert.panel.remove_all"]()}</p>
</button>
{:else}
<Tooltip text={m["convert.panel.remove_all"]()} position="right">
<Tooltip
text={m["convert.panel.remove_all"]()}
position="right"
>
<button
class="btn p-4 {$effects
? ''
@ -67,8 +70,11 @@
</div>
<div class="w-full bg-separator h-0.5 flex md:hidden"></div>
<div class="flex items-center gap-2">
<p class="whitespace-nowrap text-xl">{m["convert.panel.set_all_to"]()}</p>
{#if files.requiredConverters.length === 1}
<p class="whitespace-nowrap text-xl">
{m["convert.panel.set_all_to"]()}
</p>
<!-- 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))}
<FormatDropdown
onselect={(r) =>
files.files.forEach((f) => {