iceshrimp-legacy/src/web/app/desktop/tags/user-following.tag

24 lines
567 B
HTML
Raw Normal View History

2017-01-11 21:55:38 +01:00
<mk-user-following>
2017-06-07 08:43:29 +02:00
<mk-users-list fetch={ fetch } count={ user.following_count } you-know-count={ user.following_you_know_count } no-users={ 'フォロー中のユーザーはいないようです' }/>
2017-02-19 04:31:53 +01:00
<style>
2017-01-11 21:55:38 +01:00
:scope
display block
height 100%
2016-12-28 23:49:51 +01:00
2017-01-11 21:55:38 +01:00
</style>
<script>
2017-02-20 01:53:57 +01:00
this.mixin('api');
2016-12-28 23:49:51 +01:00
2017-02-20 06:33:30 +01:00
this.user = this.opts.user;
2016-12-28 23:49:51 +01:00
2017-02-20 02:34:57 +01:00
this.fetch = (iknow, limit, cursor, cb) => {
2017-02-20 06:33:30 +01:00
this.api('users/following', {
user_id: this.user.id,
iknow: iknow,
limit: limit,
cursor: cursor ? cursor : undefined
}).then(cb);
};
2017-01-11 21:55:38 +01:00
</script>
</mk-user-following>