web/elements: allow app.model names for ak-object-changelog

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-11-26 12:04:46 +01:00
parent 0948e0ee1c
commit 80364b04a9
2 changed files with 25 additions and 10 deletions

View File

@ -19,7 +19,7 @@ import { groupBy } from "../../utils";
import "../EmptyState";
import "../chips/Chip";
import "../chips/ChipGroup";
import { getURLParams, updateURLParams } from "../router/RouteMatch";
import { getURLParam, updateURLParams } from "../router/RouteMatch";
import "./TablePagination";
import "./TableSearch";
@ -116,7 +116,7 @@ export abstract class Table<T> extends LitElement {
order?: string;
@property({ type: String })
search?: string;
search: string = getURLParam("search", "");
@property({ type: Boolean })
checkbox = false;
@ -397,10 +397,6 @@ export abstract class Table<T> extends LitElement {
}
firstUpdated(): void {
const params = getURLParams();
if ("search" in params) {
this.search = params.search;
}
this.fetch();
}