aboutsummaryrefslogtreecommitdiff
path: root/src/components/follow_list/follow_list.vue
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-02-04 17:54:48 +0000
committerShpuld Shpludson <shp@cock.li>2019-02-04 17:54:48 +0000
commit8c8eb99d73aacd38781da2e6b151c9b76c1639a2 (patch)
tree7533728f9f115f877806694960dcaeb48d28dbd7 /src/components/follow_list/follow_list.vue
parent3cd1deb133926281920f10c1ddd6eb694c09f44d (diff)
parent54e7e0e31babbfb0c4ebc2e1a73012e1b1890231 (diff)
Merge branch 'feat/follows-following-pagination' into 'develop'
Follows + followers pagination #285 See merge request pleroma/pleroma-fe!510
Diffstat (limited to 'src/components/follow_list/follow_list.vue')
-rw-r--r--src/components/follow_list/follow_list.vue33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/components/follow_list/follow_list.vue b/src/components/follow_list/follow_list.vue
new file mode 100644
index 00000000..24ab97d8
--- /dev/null
+++ b/src/components/follow_list/follow_list.vue
@@ -0,0 +1,33 @@
+<template>
+ <div class="follow-list">
+ <user-card
+ v-for="entry in entries"
+ :key="entry.id" :user="entry"
+ :showFollows="true"
+ />
+ <div class="text-center panel-footer">
+ <a v-if="error" @click="fetchEntries" class="alert error">
+ {{$t('general.generic_error')}}
+ </a>
+ <i v-else-if="loading" class="icon-spin3 animate-spin"/>
+ <span v-else-if="bottomedOut"></span>
+ <a v-else @click="fetchEntries">{{$t('general.more')}}</a>
+ </div>
+ </div>
+</template>
+
+<script src="./follow_list.js"></script>
+
+<style lang="scss">
+
+.follow-list {
+ .panel-footer {
+ padding: 10px;
+ }
+
+ .error {
+ font-size: 14px;
+ }
+}
+
+</style>