fallback text for no wishlist

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-02-12 22:36:39 +01:00
parent d085d4b762
commit be9cbc4da4
3 changed files with 25 additions and 1 deletions

View file

@ -32,6 +32,13 @@
} }
} }
}, },
"home-view": {
"main": {
"empty-list": {
"text": "Keine Wunschlisten verfügbar."
}
}
},
"detail-view": { "detail-view": {
"main": { "main": {
"empty-list": { "empty-list": {

View file

@ -32,6 +32,13 @@
} }
} }
}, },
"home-view": {
"main": {
"empty-list": {
"text": "No wishlists available."
}
}
},
"detail-view": { "detail-view": {
"main": { "main": {
"empty-list": { "empty-list": {

View file

@ -12,7 +12,10 @@ await fetch()
<h1 class="text-semibold text-center text-3xl"> <h1 class="text-semibold text-center text-3xl">
{{ t('common.app-title.text') }} {{ t('common.app-title.text') }}
</h1> </h1>
<div v-if="wishlists" class="flex flex-row flex-wrap justify-around p-10"> <div
v-if="wishlists.length > 0"
class="flex flex-row flex-wrap justify-around p-10"
>
<router-link <router-link
v-for="(item, index) in wishlists" v-for="(item, index) in wishlists"
:key="index" :key="index"
@ -21,4 +24,11 @@ await fetch()
<ImageTile :title="item.title" :image-src="item.imageSrc" class="m-4" /> <ImageTile :title="item.title" :image-src="item.imageSrc" class="m-4" />
</router-link> </router-link>
</div> </div>
<div v-else class="flex h-1/2 w-full justify-center">
<div
class="flex flex-col flex-wrap items-center justify-center text-center text-xl text-gray-600/75 dark:text-white/70 sm:flex-row sm:space-x-2 sm:text-left"
>
<span>{{ t('pages.home-view.main.empty-list.text') }}</span>
</div>
</div>
</template> </template>