Add Chapter use for download button

This commit is contained in:
2025-10-13 19:23:10 +02:00
parent a6c8139982
commit 189e5b8f17

View File

@@ -24,12 +24,18 @@
</template>
<template #default>
<div>
<MangaconnectorIcon
<div
v-for="mangaconnectorId in chapter.mangaConnectorIds.sort((a, b) =>
a.mangaConnectorName < b.mangaConnectorName ? -1 : 1
)"
v-bind="mangaconnectorId"
:key="mangaconnectorId.key" />
:key="mangaconnectorId.key"
class="bg-elevated p-1 rounded-lg w-fit flex items-center justify-center gap-2"
>
<MangaconnectorIcon v-bind="mangaconnectorId" />
<UTooltip :text="mangaconnectorId.useForDownload ? 'Stop downloading from this website' : 'Download from this website'">
<UButton :icon="mangaconnectorId.useForDownload ? 'i-lucide-cloud-off' : 'i-lucide-cloud-download'" variant="ghost" disabled /> <!-- Not implemented yet -->
</UTooltip>
</div>
</div>
</template>
</UPageCard>