diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-03 23:32:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-03 23:32:46 +0900 |
| commit | 9516f2fa630faa738d51785354f56a59411263ad (patch) | |
| tree | 22845ece5dd619b6bfa46509a133b7650b21e826 /src/client/app | |
| parent | 1.6.0 (diff) | |
| download | misskey-9516f2fa630faa738d51785354f56a59411263ad.tar.gz misskey-9516f2fa630faa738d51785354f56a59411263ad.tar.bz2 misskey-9516f2fa630faa738d51785354f56a59411263ad.zip | |
Fix bug
Diffstat (limited to 'src/client/app')
| -rw-r--r-- | src/client/app/mobile/views/components/user-timeline.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/app/mobile/views/components/user-timeline.vue b/src/client/app/mobile/views/components/user-timeline.vue index 5069c5a1ef..3ceb876596 100644 --- a/src/client/app/mobile/views/components/user-timeline.vue +++ b/src/client/app/mobile/views/components/user-timeline.vue @@ -16,6 +16,7 @@ const fetchLimit = 10; export default Vue.extend({ props: ['user', 'withMedia'], + data() { return { fetching: true, @@ -23,9 +24,17 @@ export default Vue.extend({ moreFetching: false }; }, + + computed: { + canFetchMore(): boolean { + return !this.moreFetching && !this.fetching && this.existMore; + } + }, + mounted() { this.fetch(); }, + methods: { fetch() { this.fetching = true; @@ -45,7 +54,10 @@ export default Vue.extend({ }, rej); })); }, + more() { + if (!this.canFetchMore) return; + this.moreFetching = true; (this as any).api('users/notes', { userId: this.user.id, |