web: PBResponse -> AKResponse
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { gettext } from "django";
|
||||
import { css, CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element";
|
||||
import { PBResponse } from "../../api/Client";
|
||||
import { AKResponse } from "../../api/Client";
|
||||
import { Notification } from "../../api/EventNotification";
|
||||
import { COMMON_STYLES } from "../../common/styles";
|
||||
|
||||
@ -8,7 +8,7 @@ import { COMMON_STYLES } from "../../common/styles";
|
||||
export class NotificationDrawer extends LitElement {
|
||||
|
||||
@property({attribute: false})
|
||||
notifications?: PBResponse<Notification>;
|
||||
notifications?: AKResponse<Notification>;
|
||||
|
||||
@property({type: Number})
|
||||
unread = 0;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { gettext } from "django";
|
||||
import { customElement, html, property, TemplateResult } from "lit-element";
|
||||
import { PBResponse } from "../../api/Client";
|
||||
import { AKResponse } from "../../api/Client";
|
||||
import { Table, TableColumn } from "../../elements/table/Table";
|
||||
import { PolicyBinding } from "../../api/PolicyBindings";
|
||||
|
||||
@ -14,7 +14,7 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
|
||||
@property()
|
||||
target?: string;
|
||||
|
||||
apiEndpoint(page: number): Promise<PBResponse<PolicyBinding>> {
|
||||
apiEndpoint(page: number): Promise<AKResponse<PolicyBinding>> {
|
||||
return PolicyBinding.list({
|
||||
target: this.target || "",
|
||||
ordering: "order",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { gettext } from "django";
|
||||
import { CSSResult, html, LitElement, property, TemplateResult } from "lit-element";
|
||||
import { PBResponse } from "../../api/Client";
|
||||
import { AKResponse } from "../../api/Client";
|
||||
import { COMMON_STYLES } from "../../common/styles";
|
||||
|
||||
import "./TablePagination";
|
||||
@ -69,7 +69,7 @@ export class TableColumn {
|
||||
}
|
||||
|
||||
export abstract class Table<T> extends LitElement {
|
||||
abstract apiEndpoint(page: number): Promise<PBResponse<T>>;
|
||||
abstract apiEndpoint(page: number): Promise<AKResponse<T>>;
|
||||
abstract columns(): TableColumn[];
|
||||
abstract row(item: T): TemplateResult[];
|
||||
|
||||
@ -84,7 +84,7 @@ export abstract class Table<T> extends LitElement {
|
||||
}
|
||||
|
||||
@property({attribute: false})
|
||||
data?: PBResponse<T>;
|
||||
data?: AKResponse<T>;
|
||||
|
||||
@property({type: Number})
|
||||
page = 1;
|
||||
|
||||
Reference in New Issue
Block a user