Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix table page navigation on registration action

Chocobozzz107d85f89edf
diff --git a/client/src/app/+admin/moderation/registration-list/registration-list.component.ts b/client/src/app/+admin/moderation/registration-list/registration-list.component.ts
index 6a200121e2..9873a86f67 100644
--- a/client/src/app/+admin/moderation/registration-list/registration-list.component.ts
+++ b/client/src/app/+admin/moderation/registration-list/registration-list.component.ts
@@ -130,7 +130,7 @@ export class RegistrationListComponent implements OnInit {
}
onRegistrationProcessed () {
- this.table().reloadData({ field: 'createdAt', order: -1 })
+ this.table().loadData()
}
getStateFilterTitle (stateLabel: string) {
diff --git a/client/src/app/shared/shared-tables/table.component.ts b/client/src/app/shared/shared-tables/table.component.ts
index 3843012033..d6fbf2e2dc 100644
--- a/client/src/app/shared/shared-tables/table.component.ts
+++ b/client/src/app/shared/shared-tables/table.component.ts
@@ -54,7 +54,8 @@ export type TableQueryParams = {
sortField?: string
search?: string
- state?: number
+ // Internal table state to fire reload
+ _state?: number
}
export type TableColumnInfo<ColumnName> = {
@@ -489,9 +490,9 @@ export class TableComponent<
}
if (reset) {
- const baseState = this.route.snapshot.queryParams.state || 0
+ const baseState = this.route.snapshot.queryParams._state || 0
- newParams.state = +baseState + 1
+ newParams._state = +baseState + 1
}
debugLogger('Update URL', { newParams })