Sharkey/src/web/app/mobile/views/components/user-following.vue

27 lines
519 B
Vue
Raw Normal View History

2018-02-16 05:59:19 +02:00
<template>
<mk-users-list
:fetch="fetch"
:count="user.following_count"
:you-know-count="user.following_you_know_count"
>
%i18n:mobile.tags.mk-user-following.no-users%
</mk-users-list>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
props: ['user'],
methods: {
fetch(iknow, limit, cursor, cb) {
2018-02-18 05:35:18 +02:00
(this as any).api('users/following', {
2018-02-16 05:59:19 +02:00
user_id: this.user.id,
iknow: iknow,
limit: limit,
cursor: cursor ? cursor : undefined
}).then(cb);
}
}
});
</script>