web/admin: fix missing css for descriptor list in cert list

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-29 16:23:43 +02:00
parent 526af26536
commit a9db538c63
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,8 @@
import { gettext } from "django";
import { customElement, html, property, TemplateResult } from "lit-element";
import { CSSResult, customElement, html, property, TemplateResult } from "lit-element";
import { AKResponse } from "../../api/Client";
import { TablePage } from "../../elements/table/TablePage";
import PFDescriptionList from "@patternfly/patternfly/components/DescriptionList/description-list.css";
import { CryptoApi, CertificateKeyPair } from "authentik-api";
@ -33,6 +34,10 @@ export class CertificateKeyPairListPage extends TablePage<CertificateKeyPair> {
@property()
order = "name";
static get styles(): CSSResult[] {
return super.styles.concat(PFDescriptionList);
}
apiEndpoint(page: number): Promise<AKResponse<CertificateKeyPair>> {
return new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({
ordering: this.order,