manga table: show that mangaupdates relation has been "found" when series is not fetched yet instead of showing nothing

This commit is contained in:
wea_ondara
2023-10-06 20:06:21 +02:00
parent 51d2b98889
commit 3935c5640b
3 changed files with 20 additions and 5 deletions

View File

@@ -124,11 +124,16 @@ export default class MangaListTable extends Vue {
<div>{{ cd(data).item.media?.title.native }}</div>
<div>{{ cd(data).item.media?.title.english }}</div>
</div>
<div v-if="cd(data).item.relation" style="font-size: 0.5em">
MangaUpdates:
<a v-if="cd(data).item.series" :href="cd(data).item.series!.url" target="_blank">
{{ cd(data).item.series!.title }}
</a>
<div v-if="cd(data).item.relation" class="d-flex flex-row" style="font-size: 0.5em">
<span>
MangaUpdates:&nbsp;
</span>
<template v-if="cd(data).item.series">
<a :href="cd(data).item.series!.url" target="_blank">
{{ cd(data).item.series!.title }}
</a>
</template>
<span v-else>{{ $t('mangaupdates.relation.found') }}</span>
</div>
</template>
<template #head(entry.score)="data">