web/elements: fix clashing page url param
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
fcc47038e4
commit
6345f99aa0
|
@ -119,7 +119,7 @@ export abstract class Table<T> extends AKElement {
|
||||||
data?: PaginatedResponse<T>;
|
data?: PaginatedResponse<T>;
|
||||||
|
|
||||||
@property({ type: Number })
|
@property({ type: Number })
|
||||||
page = getURLParam("page", 1);
|
page = getURLParam("tablePage", 1);
|
||||||
|
|
||||||
@property({ type: String })
|
@property({ type: String })
|
||||||
order?: string;
|
order?: string;
|
||||||
|
@ -426,7 +426,7 @@ export abstract class Table<T> extends AKElement {
|
||||||
.pages=${this.data?.pagination}
|
.pages=${this.data?.pagination}
|
||||||
.pageChangeHandler=${(page: number) => {
|
.pageChangeHandler=${(page: number) => {
|
||||||
this.page = page;
|
this.page = page;
|
||||||
updateURLParams({ page: page });
|
updateURLParams({ tablePage: page });
|
||||||
this.fetch();
|
this.fetch();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
Reference in New Issue