forked from AkkomaGang/akkoma-fe
#291 - enable media/favorite tabs with prefetched data
This commit is contained in:
parent
b57b4c6e45
commit
34169e692f
2 changed files with 3 additions and 5 deletions
|
@ -30,7 +30,7 @@
|
|||
</div>
|
||||
<Timeline
|
||||
:label="$t('user_card.media')"
|
||||
:disabled="!user.media_count"
|
||||
:disabled="!media.visibleStatuses.length"
|
||||
:embedded="true" :title="$t('user_card.media')"
|
||||
timeline-name="media"
|
||||
:timeline="media"
|
||||
|
@ -39,7 +39,7 @@
|
|||
<Timeline
|
||||
v-if="isUs"
|
||||
:label="$t('user_card.favorites')"
|
||||
:disabled="!user.favourites_count"
|
||||
:disabled="!favorites.visibleStatuses.length"
|
||||
:embedded="true"
|
||||
:title="$t('user_card.favorites')"
|
||||
timeline-name="favorites"
|
||||
|
|
|
@ -115,8 +115,6 @@ export const parseUser = (data) => {
|
|||
output.locked = data.locked
|
||||
output.followers_count = data.followers_count
|
||||
output.statuses_count = data.statuses_count
|
||||
output.favourites_count = data.favourites_count
|
||||
output.media_count = data.media_count
|
||||
output.friends = []
|
||||
output.followers = []
|
||||
|
||||
|
|
Loading…
Reference in a new issue