mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 12:13:09 +02:00
Fix
This commit is contained in:
parent
b335975c97
commit
0d3117e472
4 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -59,6 +59,10 @@ export default Vue.extend({
|
|||
if (document.hidden || !self.isScrollTop()) {
|
||||
self.$store.commit('pushBehindNote', note);
|
||||
}
|
||||
},
|
||||
|
||||
onInited: (self) => {
|
||||
self.$emit('loaded');
|
||||
}
|
||||
}),
|
||||
],
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue