1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-28 23:09:16 +09:00
This commit is contained in:
syuilo 2019-05-21 03:40:18 +09:00
parent b335975c97
commit 0d3117e472
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
4 changed files with 7 additions and 2 deletions

View File

@ -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);
});
},

View File

@ -59,6 +59,10 @@ export default Vue.extend({
if (document.hidden || !self.isScrollTop()) {
self.$store.commit('pushBehindNote', note);
}
},
onInited: (self) => {
self.$emit('loaded');
}
}),
],

View File

@ -1,6 +1,5 @@
<template>
<div class="header" ref="root" :class="{ shadow: $store.state.device.useShadow }">
<p class="warn" v-if="env != 'production'">{{ $t('@.do-not-use-in-production') }} <a href="/assets/flush.html?force">Flush</a></p>
<div class="main" ref="main">
<div class="backdrop"></div>
<div class="content" ref="mainContainer">

View File

@ -7,7 +7,7 @@
</div>
</ui-container>
<mk-notes ref="timeline" :pagination="pagination" @inited="() => $emit('loaded')"/>
<mk-notes ref="timeline" :pagination="pagination" @loaded="() => $emit('loaded')"/>
</div>
</template>