diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-12 10:19:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-12 10:19:33 +0200 |
commit | 0667dbaf268e05b5c9d22f662532e86a1233741c (patch) | |
tree | 9aaf548f7796958d6642715a8fc81672ddef0790 /client/src/app/core/rest | |
parent | a49407524fc1212299a41d7c5330f27b36112167 (diff) | |
download | PeerTube-0667dbaf268e05b5c9d22f662532e86a1233741c.tar.gz PeerTube-0667dbaf268e05b5c9d22f662532e86a1233741c.tar.zst PeerTube-0667dbaf268e05b5c9d22f662532e86a1233741c.zip |
Reset table pagination on search
Diffstat (limited to 'client/src/app/core/rest')
-rw-r--r-- | client/src/app/core/rest/rest-table.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/core/rest/rest-table.ts b/client/src/app/core/rest/rest-table.ts index 7b765f7fc..cb5bd0b89 100644 --- a/client/src/app/core/rest/rest-table.ts +++ b/client/src/app/core/rest/rest-table.ts | |||
@@ -65,6 +65,11 @@ export abstract class RestTable { | |||
65 | } | 65 | } |
66 | 66 | ||
67 | onSearch (search: string) { | 67 | onSearch (search: string) { |
68 | this.pagination = { | ||
69 | start: 0, | ||
70 | count: this.rowsPerPage | ||
71 | } | ||
72 | |||
68 | this.search = search | 73 | this.search = search |
69 | this.reloadData() | 74 | this.reloadData() |
70 | } | 75 | } |