From ca2a4ffb59c1a9609ba8abbbec1ca445e878ec0a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 10 Apr 2021 20:12:57 +0200 Subject: [PATCH] web/elements: render ChipGroup when checkboxes are enabled Signed-off-by: Jens Langhammer --- web/src/elements/table/Table.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/src/elements/table/Table.ts b/web/src/elements/table/Table.ts index 06d32bf99..89761e78c 100644 --- a/web/src/elements/table/Table.ts +++ b/web/src/elements/table/Table.ts @@ -13,6 +13,8 @@ import AKGlobal from "../../authentik.css"; import "./TablePagination"; import "../EmptyState"; +import "../chips/Chip"; +import "../chips/ChipGroup"; import { EVENT_REFRESH } from "../../constants"; export class TableColumn { @@ -235,7 +237,15 @@ export abstract class Table extends LitElement { } renderTable(): TemplateResult { - return html`
+ return html` + ${this.checkbox ? + html` + ${this.selectedElements.map(el => { + return html`${this.renderSelectedChip(el)}`; + })} + `: + html``} +
${this.renderSearch()}