From 0d3117e4722e1ced87ad4bdc81a794c03609c3dd Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 21 May 2019 03:40:18 +0900 Subject: [PATCH] Fix --- src/client/app/common/scripts/paging.ts | 2 ++ src/client/app/mobile/views/components/notes.vue | 4 ++++ src/client/app/mobile/views/components/ui.header.vue | 1 - src/client/app/mobile/views/pages/home.timeline.vue | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/client/app/common/scripts/paging.ts b/src/client/app/common/scripts/paging.ts index 4875ce620f..c13a607e6f 100644 --- a/src/client/app/common/scripts/paging.ts +++ b/src/client/app/common/scripts/paging.ts @@ -82,8 +82,10 @@ export default (opts) => ({ } this.inited = true; this.fetching = false; + if (opts.onInited) opts.onInited(this); }, e => { this.fetching = false; + if (opts.onInited) opts.onInited(this); }); }, diff --git a/src/client/app/mobile/views/components/notes.vue b/src/client/app/mobile/views/components/notes.vue index 2112259564..1a0cd5cc24 100644 --- a/src/client/app/mobile/views/components/notes.vue +++ b/src/client/app/mobile/views/components/notes.vue @@ -59,6 +59,10 @@ export default Vue.extend({ if (document.hidden || !self.isScrollTop()) { self.$store.commit('pushBehindNote', note); } + }, + + onInited: (self) => { + self.$emit('loaded'); } }), ], diff --git a/src/client/app/mobile/views/components/ui.header.vue b/src/client/app/mobile/views/components/ui.header.vue index b636041d63..f20f64e7ff 100644 --- a/src/client/app/mobile/views/components/ui.header.vue +++ b/src/client/app/mobile/views/components/ui.header.vue @@ -1,6 +1,5 @@