fix: 💄 fix missing icon on empty contents
All checks were successful
repod / xml (push) Successful in 21s
repod / php (push) Successful in 53s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-09-02 12:37:55 +02:00
parent 094b7812cd
commit 81cb6a0191
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,9 @@
<template> <template>
<NcEmptyContent class="empty"> <NcEmptyContent class="empty">
<slot /> <slot />
<template #icon>
<slot name="icon" />
</template>
</NcEmptyContent> </NcEmptyContent>
</template> </template>

View File

@ -2,13 +2,12 @@
<AppContent> <AppContent>
<EmptyContent <EmptyContent
v-if="!getFavorites.length" v-if="!getFavorites.length"
class="empty"
:description=" :description="
t('repod', 'Pin some subscriptions to see their latest updates') t('repod', 'Pin some subscriptions to see their latest updates')
" "
:name="t('repod', 'No favorites')"> :name="t('repod', 'No favorites')">
<template #icon> <template #icon>
<StarOffIcon :size="20" /> <StarOffIcon />
</template> </template>
</EmptyContent> </EmptyContent>
<ul v-if="getFavorites.length"> <ul v-if="getFavorites.length">