From 7f9feacd264915df92d14399dc9c1aa5cb4d22e7 Mon Sep 17 00:00:00 2001 From: taehoon Date: Sun, 26 May 2019 14:15:35 -0400 Subject: prevent showing pinned statuses twice --- src/components/timeline/timeline.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/timeline/timeline.vue') diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 1fc52083..623f65d7 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -29,7 +29,7 @@
Date: Fri, 19 Jul 2019 22:40:37 -0400 Subject: move pinned statuses showing logic in timeline --- src/components/timeline/timeline.vue | 12 ++++++++++++ src/components/user_profile/user_profile.vue | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/components/timeline/timeline.vue') diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 623f65d7..9990f20a 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -27,6 +27,18 @@
+
+ +
-
- -
Date: Fri, 19 Jul 2019 22:46:11 -0400 Subject: put two loops in one parent --- src/components/timeline/timeline.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/components/timeline/timeline.vue') diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 9990f20a..4337ac36 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -31,15 +31,13 @@ -
-
Date: Sat, 20 Jul 2019 16:54:30 -0400 Subject: update status eliminating logic --- src/components/timeline/timeline.js | 14 ++++++++++---- src/components/timeline/timeline.vue | 16 +++++++++------- 2 files changed, 19 insertions(+), 11 deletions(-) (limited to 'src/components/timeline/timeline.vue') diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 7c8a761a..b1413591 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -41,12 +41,18 @@ const Timeline = { footer: ['timeline-footer'].concat(!this.embedded ? ['panel-footer'] : []) } }, - statuses () { + // id map of statuses which need to be hidden in the main list due to pinning logic + excludedStatusIdsObject () { + const result = {} if (this.pinnedStatusIds && this.pinnedStatusIds.length > 0) { - return this.timeline.visibleStatuses && this.timeline.visibleStatuses.filter(status => !this.pinnedStatusIds.includes(status.id)) - } else { - return this.timeline.visibleStatuses + for (let status of this.timeline.visibleStatuses) { + if (this.pinnedStatusIds.indexOf(status.id) === -1) { + break + } + result[status.id] = true + } } + return result } }, components: { diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 4337ac36..0cb4b3ef 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -38,13 +38,15 @@ :show-pinned="true" /> - +
-- cgit v1.2.3-70-g09d2