mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Fix admin table filters
This commit is contained in:
parent
ac2b052d54
commit
3f6441e09a
5 changed files with 10 additions and 6 deletions
|
@ -131,10 +131,14 @@ export abstract class RestTable {
|
|||
this.expandedRows = {}
|
||||
}
|
||||
|
||||
setTableFilter (filter: string) {
|
||||
setTableFilter (filter: string, triggerEvent = true) {
|
||||
// FIXME: cannot use ViewChild, so create a component for the filter input
|
||||
const filterInput = document.getElementById('table-filter') as HTMLInputElement
|
||||
if (filterInput) filterInput.value = filter
|
||||
if (!filterInput) return
|
||||
|
||||
filterInput.value = filter
|
||||
|
||||
if (triggerEvent) filterInput.dispatchEvent(new Event('keyup'))
|
||||
}
|
||||
|
||||
resetSearch () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue