From 6ae3c1cfcf896839f799888e53fc751db952b0f1 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Fri, 3 May 2019 07:52:22 -0400
Subject: autoload older notifications when scrolled to the bottom
---
src/components/notifications/notifications.js | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'src/components/notifications/notifications.js')
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index e341212e..5b13b98e 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -52,6 +52,10 @@ const Notifications = {
this.$store.dispatch('markNotificationsAsSeen')
},
fetchOlderNotifications () {
+ if (this.loading) {
+ return
+ }
+
const store = this.$store
const credentials = store.state.users.currentUser.credentials
store.commit('setNotificationsLoading', { value: true })
--
cgit v1.2.3-70-g09d2