From 69567e19dfa69f9a9e74100f5de94cd0cfb8c397 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 1 Jun 2021 21:01:00 -0600 Subject: [PATCH] Update NotificationCard, fix loading bug --- resources/assets/js/components/NotificationCard.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/assets/js/components/NotificationCard.vue b/resources/assets/js/components/NotificationCard.vue index 9fe9e3c2f..ef694f3b9 100644 --- a/resources/assets/js/components/NotificationCard.vue +++ b/resources/assets/js/components/NotificationCard.vue @@ -2,12 +2,12 @@
-
+
Loading...
-
+

@@ -86,7 +86,7 @@

0 Notifications!

-
+

No notifications yet

@@ -103,6 +103,7 @@ export default { data() { return { + loading: true, notifications: {}, notificationCursor: 2, notificationMaxId: 0, @@ -133,8 +134,7 @@ let ids = res.data.map(n => n.id); this.notificationMaxId = Math.min(...ids); this.notifications = data; - $('.notification-card .loader').addClass('d-none'); - $('.notification-card .contents').removeClass('d-none'); + this.loading = false; //this.notificationPoll(); }); },