diff --git a/src/components/status/status.js b/src/components/status/status.js index 9f6be831c..ac58c3b8d 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -105,7 +105,6 @@ const Status = { isPreview: Boolean, noHeading: Boolean, inlineExpanded: Boolean, - showPinned: Boolean, inProfile: Boolean, inConversation: Boolean, inQuote: Boolean, diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 8cc8c95f0..0db67f24b 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -169,7 +169,7 @@ diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index f72c7f93c..ee18b0c4d 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -27,11 +27,10 @@ library.add(faCircleNotch, faCog, faMinus, faArrowUp, faCirclePlus, faCheck) const Timeline = { props: { timelineRef: Object, - count: Number, footerSlipgate: Object, // reference to an element where we should put our footer embedded: Boolean, inProfile: Boolean, - skipPinned: Boolean, + skipPinned: Boolean }, data() { return { @@ -59,6 +58,9 @@ const Timeline = { .map((id) => useStatusesStore().allStatuses.get(id)) .filter(({ pinned }) => (this.skipPinned ? !pinned : true)) }, + count() { + return this.timeline.order.length + }, newStatusCount() { return this.timeline.newStatusCount }, @@ -190,13 +192,12 @@ const Timeline = { if (!this.virtualScrollingEnabled) return const statuses = this.$refs.timeline.children + if (statuses.length === 0) return const cappedScrollIndex = Math.max( 0, Math.min(this.virtualScrollIndex, statuses.length - 1), ) - if (statuses.length === 0) return - const height = Math.max(document.body.offsetHeight, window.pageYOffset) const centerOfScreen = window.pageYOffset + window.innerHeight * 0.5 diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 745d8c399..faf184504 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -84,7 +84,7 @@ /> -
+
{ - console.log('LOAD', userId) this.userId = userId } @@ -139,7 +138,6 @@ const UserProfile = { } }, switchUser(userNameOrId) { - console.log('USER SWITCH') this.load(userNameOrId) }, onTabSwitch(tab) { diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index fbad5c42d..f60521ffa 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -23,18 +23,14 @@ key="statuses" class="statuses" :label="$t('user_card.statuses')" - :count="user.statuses_count" :title="$t('user_profile.timeline_title')" > -