aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-05-03 14:47:54 +0000
committerShpuld Shpludson <shp@cock.li>2019-05-03 14:47:54 +0000
commitb47820905c4a5b44ae0c297e3d9c5484ca202272 (patch)
tree54b6155f0421cb81723f4da154b5e0dd3ff56685 /src/components/notifications/notifications.js
parentb4122c1003cee770721422d8338eb3150bb6bfaf (diff)
parent6ae3c1cfcf896839f799888e53fc751db952b0f1 (diff)
Merge branch '516-autoload' into 'develop'
Autoload older notifications when scrolled to the bottom Closes #516 See merge request pleroma/pleroma-fe!780
Diffstat (limited to 'src/components/notifications/notifications.js')
-rw-r--r--src/components/notifications/notifications.js4
1 files changed, 4 insertions, 0 deletions
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 })