Fix useHead

This commit is contained in:
2025-10-14 14:55:12 +02:00
parent 772afbc726
commit dc9efb8d64
5 changed files with 6 additions and 6 deletions

View File

@@ -39,5 +39,5 @@ const onDownloadClick = async () => {
loading.value = false; loading.value = false;
}; };
useHead({ title: `Download ${manga.value?.name} from ${mangaConnector.value?.name}` }); useHead({ title: 'Download Manga' });
</script> </script>

View File

@@ -102,5 +102,5 @@ const unlinkMetadataFetcher = async (metadataFetcherName: string) => {
await refreshNuxtData(FetchKeys.Metadata.Manga(mangaId)); await refreshNuxtData(FetchKeys.Metadata.Manga(mangaId));
}; };
useHead({ title: `Manga ${manga.value?.name}` }); useHead({ title: 'Manga' });
</script> </script>

View File

@@ -52,5 +52,5 @@ const link = async (identifier: string) => {
navigateTo(`/manga/${mangaId}`); navigateTo(`/manga/${mangaId}`);
}; };
useHead({ title: `Link Metadata ${manga.value?.name} ${metadataFetcherName}` }); useHead({ title: 'Link Metadata' });
</script> </script>

View File

@@ -36,5 +36,5 @@ const merge = async () => {
navigateTo(`/manga/${to}`); navigateTo(`/manga/${to}`);
}; };
useHead({ title: `Merge ${manga.value?.name} with ${target.value?.name}` }); useHead({ title: 'Confirm merge' });
</script> </script>

View File

@@ -6,7 +6,7 @@
> >
<UPageBody class="p-4 flex flex-row flex-wrap gap-6 mt-0"> <UPageBody class="p-4 flex flex-row flex-wrap gap-6 mt-0">
<USkeleton v-if="!mangas" class="w-full h-[350px]" /> <USkeleton v-if="!mangas" class="w-full h-[350px]" />
<NuxtLink v-for="m in mangas.filter((m) => m.key != mangaId)" v-else :key="m.key" :to="m.key"> <NuxtLink v-for="m in mangas.filter((x) => x.key != mangaId)" v-else :key="m.key" :to="`/manga/${mangaId}/merge/${m.key}`">
<MangaCard :manga="m" /> <MangaCard :manga="m" />
</NuxtLink> </NuxtLink>
</UPageBody> </UPageBody>
@@ -20,5 +20,5 @@ const mangaId = route.params.mangaId as string;
const { data: manga } = await useApi('/v2/Manga/{MangaId}', { path: { MangaId: mangaId }, key: FetchKeys.Manga.Id(mangaId) }); const { data: manga } = await useApi('/v2/Manga/{MangaId}', { path: { MangaId: mangaId }, key: FetchKeys.Manga.Id(mangaId) });
const { data: mangas } = await useApi('/v2/Manga', { key: FetchKeys.Manga.All }); const { data: mangas } = await useApi('/v2/Manga', { key: FetchKeys.Manga.All });
useHead({ title: `Merge Manga ${manga.value?.name}` }); useHead({ title: 'Merge Manga' });
</script> </script>