autoload older notifications when scrolled to the bottom
This commit is contained in:
parent
b4122c1003
commit
6ae3c1cfcf
3 changed files with 10 additions and 1 deletions
|
@ -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 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue