unified how panel-footer works between regular timelines and user timeline

This commit is contained in:
Henry Jameson 2022-04-25 23:50:22 +03:00
parent f2b75a075d
commit 2a6f42fef3
7 changed files with 53 additions and 37 deletions

View file

@ -39,7 +39,8 @@ const UserProfile = {
return {
error: false,
userId: null,
tab: defaultTabKey
tab: defaultTabKey,
footerRef: null
}
},
created () {
@ -78,6 +79,9 @@ const UserProfile = {
}
},
methods: {
setFooterRef (el) {
this.footerRef = el
},
load (userNameOrId) {
const startFetchingTimeline = (timeline, userId) => {
// Clear timeline only if load another user's profile

View file

@ -56,6 +56,7 @@
:user-id="userId"
:pinned-status-ids="user.pinnedStatusIds"
:in-profile="true"
:footerSlipgate="footerRef"
/>
<div
v-if="followsTabVisible"
@ -94,6 +95,7 @@
:timeline="media"
:user-id="userId"
:in-profile="true"
:footerSlipgate="footerRef"
/>
<Timeline
v-if="isUs"
@ -105,8 +107,10 @@
timeline-name="favorites"
:timeline="favorites"
:in-profile="true"
:footerSlipgate="footerRef"
/>
</tab-switcher>
<div class="panel-footer" :ref="setFooterRef"></div>
</div>
<div
v-else