From 63dc9a3c2bd5b9aaebd0af54b7a7a193d7e80bf6 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 28 Apr 2019 22:37:04 -0600 Subject: [PATCH] Update Timeline, add unfollow button to following modal --- resources/assets/js/components/Timeline.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index 2071b2795..34112e1e4 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -287,9 +287,15 @@ {{user.display_name}}

+ Unfollow -
+
+
+

You are not following anyone.

+
+
+

Load more

@@ -973,6 +979,16 @@ }).then(res => { this.suggestions.splice(index, 1); }) + }, + + followModalAction(id, index, type = 'following') { + axios.post('/i/follow', { + item: id + }).then(res => { + if(type == 'following') { + this.following.splice(index, 1); + } + }) } } }