From 3c475552766e1dd9081856c713ea5252202e7613 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 8 Apr 2021 22:25:57 +0200 Subject: [PATCH] web/admin: Show inbuilt authentik db as source in sources list Signed-off-by: Jens Langhammer --- web/src/elements/table/Table.ts | 5 +++++ web/src/pages/sources/SourcesListPage.ts | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/web/src/elements/table/Table.ts b/web/src/elements/table/Table.ts index 06d32bf99..516e3c6cb 100644 --- a/web/src/elements/table/Table.ts +++ b/web/src/elements/table/Table.ts @@ -230,6 +230,10 @@ export abstract class Table extends LitElement { return html``; } + renderRowsAbove(): TemplateResult { + return html``; + } + firstUpdated(): void { this.fetch(); } @@ -265,6 +269,7 @@ export abstract class Table extends LitElement { ${this.columns().map((col) => col.render(this))} + ${this.renderRowsAbove()} ${(this.isLoading || !this.data) ? this.renderLoading() : this.renderRows()}
diff --git a/web/src/pages/sources/SourcesListPage.ts b/web/src/pages/sources/SourcesListPage.ts index 85b3baca0..d41c00da6 100644 --- a/web/src/pages/sources/SourcesListPage.ts +++ b/web/src/pages/sources/SourcesListPage.ts @@ -53,6 +53,22 @@ export class SourceListPage extends TablePage { ]; } + renderRowsAbove(): TemplateResult { + return html` + + + +
${t`authentik Built-in`}
+ ${t`Built-in`} +
+ + - + + + + `; + } + row(item: Source): TemplateResult[] { return [ html`