Add limits to Following

This commit is contained in:
Daniel Supernault 2019-06-01 20:18:21 -06:00
parent 44ba4749f9
commit d1c0e9aae9
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
7 changed files with 43 additions and 9 deletions

View file

@ -950,6 +950,10 @@ export default {
this.profile.followers_count++;
}
this.relationship.following = !this.relationship.following;
}).catch(err => {
if(err.response.data.message) {
swal('Error', err.response.data.message, 'error');
}
});
},
@ -1064,7 +1068,11 @@ export default {
this.following.splice(index, 1);
this.profile.following_count--;
}
})
}).catch(err => {
if(err.response.data.message) {
swal('Error', err.response.data.message, 'error');
}
});
},
momentBackground() {