#291 - enable media/favorite tabs with prefetched data

This commit is contained in:
dave 2019-02-08 09:56:45 -05:00
parent b57b4c6e45
commit 34169e692f
2 changed files with 3 additions and 5 deletions

View file

@ -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,13 +39,13 @@
<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"
:timeline="favorites"
/>
</tab-switcher>
</tab-switcher>
</div>
<div v-else class="panel user-profile-placeholder">
<div class="panel-heading">

View file

@ -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 = []