diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-23 11:15:00 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-23 11:27:09 +0200 |
commit | 52798aa5f277492d4dd2482bca9396d2e982fa19 (patch) | |
tree | c3b8057acf3860aacc92743b9d92214ad0364fcb /client/src/app/core/rest | |
parent | f89189907bbdff6c4bc6d3460ed9ef4c49515f17 (diff) | |
download | PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.tar.gz PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.tar.zst PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.zip |
Update angular
Diffstat (limited to 'client/src/app/core/rest')
-rw-r--r-- | client/src/app/core/rest/rest-table.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/core/rest/rest-table.ts b/client/src/app/core/rest/rest-table.ts index 707110d7f..ec4c570d4 100644 --- a/client/src/app/core/rest/rest-table.ts +++ b/client/src/app/core/rest/rest-table.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import debug from 'debug' | 1 | import debug from 'debug' |
2 | import { LazyLoadEvent, SortMeta } from 'primeng/api' | 2 | import { SortMeta } from 'primeng/api' |
3 | import { TableLazyLoadEvent } from 'primeng/table' | ||
3 | import { ActivatedRoute, Router } from '@angular/router' | 4 | import { ActivatedRoute, Router } from '@angular/router' |
4 | import { logger } from '@root-helpers/logger' | 5 | import { logger } from '@root-helpers/logger' |
5 | import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' | 6 | import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' |
@@ -46,12 +47,12 @@ export abstract class RestTable <T = unknown> { | |||
46 | peertubeLocalStorage.setItem(this.getSortLocalStorageKey(), JSON.stringify(this.sort)) | 47 | peertubeLocalStorage.setItem(this.getSortLocalStorageKey(), JSON.stringify(this.sort)) |
47 | } | 48 | } |
48 | 49 | ||
49 | loadLazy (event: LazyLoadEvent) { | 50 | loadLazy (event: TableLazyLoadEvent) { |
50 | debugLogger('Load lazy %o.', event) | 51 | debugLogger('Load lazy %o.', event) |
51 | 52 | ||
52 | this.sort = { | 53 | this.sort = { |
53 | order: event.sortOrder, | 54 | order: event.sortOrder, |
54 | field: event.sortField | 55 | field: event.sortField as string |
55 | } | 56 | } |
56 | 57 | ||
57 | this.rowsPerPage = event.rows | 58 | this.rowsPerPage = event.rows |