1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-31 12:44:05 +02:00
This commit is contained in:
syuilo
2018-06-06 05:18:08 +09:00
parent 0d8c83f27c
commit 69b5de3346
11 changed files with 505 additions and 163 deletions

View File

@@ -27,9 +27,7 @@ export default Vue.extend({
moreFetching: false,
existMore: false,
connection: null,
connectionId: null,
unreadCount: 0,
date: null
connectionId: null
};
},
@@ -74,17 +72,12 @@ export default Vue.extend({
},
methods: {
mount(root) {
this.$refs.timeline.mount(root);
},
fetch() {
this.fetching = true;
(this.$refs.timeline as any).init(() => new Promise((res, rej) => {
(this as any).api(this.endpoint, {
limit: fetchLimit + 1,
untilDate: this.date ? this.date.getTime() : undefined,
includeMyRenotes: this.$store.state.settings.showMyRenotes,
includeRenotedMyNotes: this.$store.state.settings.showRenotedMyNotes
}).then(notes => {