From c8d5edc9b2d444eaae107c830a3089b0882ede04 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 13 Jun 2020 00:32:41 -0600 Subject: [PATCH] Update Profile component, add bookmark loader --- resources/assets/js/components/Profile.vue | 67 +++++++++++++--------- 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index 006380349..3aa41c68b 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -210,35 +210,46 @@
-
-
- -
- - - -
-
-
-
- - - {{s.favourites_count}} - - - - {{s.reblogs_count}} - -
-
+
-
-
-

-

No saved bookmarks

+
@@ -641,6 +652,7 @@ followingModalSearch: null, followingModalSearchCache: null, followingModalTab: 'following', + bookmarksLoading: true, } }, beforeMount() { @@ -789,7 +801,8 @@ if(this.mode == 'bookmarks' && this.bookmarks.length == 0) { axios.get('/api/local/bookmarks') .then(res => { - this.bookmarks = res.data + this.bookmarks = res.data; + this.bookmarksLoading = false; }); } if(this.mode == 'collections' && this.collections.length == 0) {