diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-09 22:00:38 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-09 22:00:38 +0900 |
| commit | 7813c8a94293de31b2af3a158c7811be70e07197 (patch) | |
| tree | 45cb678f8e45270e3c8dcf11d8b4ca8717f5c60c /src/client/scripts/paging.ts | |
| parent | お知らせの固定表示 (#5887) (diff) | |
| download | sharkey-7813c8a94293de31b2af3a158c7811be70e07197.tar.gz sharkey-7813c8a94293de31b2af3a158c7811be70e07197.tar.bz2 sharkey-7813c8a94293de31b2af3a158c7811be70e07197.zip | |
Fix #5896
Diffstat (limited to 'src/client/scripts/paging.ts')
| -rw-r--r-- | src/client/scripts/paging.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/scripts/paging.ts b/src/client/scripts/paging.ts index b24d705f15..172558805b 100644 --- a/src/client/scripts/paging.ts +++ b/src/client/scripts/paging.ts @@ -8,7 +8,8 @@ export default (opts) => ({ fetching: true, moreFetching: false, inited: false, - more: false + more: false, + backed: false, }; }, @@ -78,6 +79,7 @@ export default (opts) => ({ async fetchMore() { if (!this.more || this.moreFetching || this.items.length === 0) return; this.moreFetching = true; + this.backed = true; let params = typeof this.pagination.params === 'function' ? this.pagination.params(false) : this.pagination.params; if (params && params.then) params = await params; const endpoint = typeof this.pagination.endpoint === 'function' ? this.pagination.endpoint() : this.pagination.endpoint; |