From 5623701642ce00ee0b3112cc62a6d1058057c312 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 17 Jul 2019 21:04:00 -0600 Subject: [PATCH] Update Profile.vue component --- resources/assets/js/components/Profile.vue | 24 +++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index a75f065d0..74bebe9f7 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -328,9 +328,21 @@
-
-

-

You have no collections

+
+ +
+
+
+

+

No collections yet

+
@@ -705,6 +717,12 @@ this.bookmarks = res.data }); } + if(this.mode == 'collections' && this.collections.length == 0) { + axios.get('/api/local/profile/collections/' + this.profileId) + .then(res => { + this.collections = res.data + }); + } }, reportProfile() {