aboutsummaryrefslogtreecommitdiff
path: root/src/components/follow_requests/follow_requests.js
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-06-12 16:57:18 +0000
committerlambda <pleromagit@rogerbraun.net>2018-06-12 16:57:18 +0000
commit6ea5cfe71ee9ae5669c44f154b7ca5dae1211551 (patch)
tree5fafbd876eb22501f1753739624d4e1676122d7e /src/components/follow_requests/follow_requests.js
parent2330170d2305b664f623b9fe8b46d075086b13b5 (diff)
parentd7d787b84cb8e36ad7f622054808f0e66c496309 (diff)
Merge branch 'feature/locked-accounts' into 'develop'
Feature/locked accounts See merge request pleroma/pleroma-fe!274
Diffstat (limited to 'src/components/follow_requests/follow_requests.js')
-rw-r--r--src/components/follow_requests/follow_requests.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/follow_requests/follow_requests.js b/src/components/follow_requests/follow_requests.js
new file mode 100644
index 00000000..11a228aa
--- /dev/null
+++ b/src/components/follow_requests/follow_requests.js
@@ -0,0 +1,23 @@
+import UserCard from '../user_card/user_card.vue'
+
+const FollowRequests = {
+ components: {
+ UserCard
+ },
+ created () {
+ this.updateRequests()
+ },
+ computed: {
+ requests () {
+ return this.$store.state.api.followRequests
+ }
+ },
+ methods: {
+ updateRequests () {
+ this.$store.state.api.backendInteractor.fetchFollowRequests()
+ .then((requests) => { this.$store.commit('setFollowRequests', requests) })
+ }
+ }
+}
+
+export default FollowRequests