From 83e934f80c620f7eee65fa7a6f47d23b229b0dc5 Mon Sep 17 00:00:00 2001 From: Ken Sternberg Date: Fri, 17 Nov 2023 11:18:43 -0800 Subject: [PATCH] Removed the consoe.log --- web/src/admin/flows/utils.ts | 6 +-- web/src/elements/sidebar/Sidebar.ts | 8 ++-- web/src/elements/sidebar/SidebarItems.ts | 56 +++++++++++++++--------- 3 files changed, 44 insertions(+), 26 deletions(-) diff --git a/web/src/admin/flows/utils.ts b/web/src/admin/flows/utils.ts index dde724d8c..9dadc3a8b 100644 --- a/web/src/admin/flows/utils.ts +++ b/web/src/admin/flows/utils.ts @@ -6,9 +6,9 @@ export function RenderFlowOption(flow: Flow): string { return `${flow.slug} (${flow.name})`; } -type Pair = [FlowDesignationEnum, string]; +type FlowDesignationPair = [FlowDesignationEnum, string]; -export const flowDesignationTable: Pair[] = [ +export const flowDesignationTable: FlowDesignationPair[] = [ [FlowDesignationEnum.Authentication, msg("Authentication")], [FlowDesignationEnum.Authorization, msg("Authorization")], [FlowDesignationEnum.Enrollment, msg("Enrollment")], @@ -25,7 +25,7 @@ export function DesignationToLabel(designation: FlowDesignationEnum): string { return flowDesignations.get(designation) ?? msg("Unknown designation"); } -const layoutToLabel = new Map([ +const layoutToLabel = new Map([ [LayoutEnum.Stacked, msg("Stacked")], [LayoutEnum.ContentLeft, msg("Content left")], [LayoutEnum.ContentRight, msg("Content right")], diff --git a/web/src/elements/sidebar/Sidebar.ts b/web/src/elements/sidebar/Sidebar.ts index 732375560..211825784 100644 --- a/web/src/elements/sidebar/Sidebar.ts +++ b/web/src/elements/sidebar/Sidebar.ts @@ -1,7 +1,7 @@ import { AKElement } from "@goauthentik/elements/Base"; import "@goauthentik/elements/sidebar/SidebarBrand"; -import "@goauthentik/elements/sidebar/SidebarUser"; import "@goauthentik/elements/sidebar/SidebarItems"; +import "@goauthentik/elements/sidebar/SidebarUser"; import { CSSResult, TemplateResult, css, html } from "lit"; import { customElement, property } from "lit/decorators.js"; @@ -73,8 +73,10 @@ export class Sidebar extends AKElement { } render(): TemplateResult { - console.log(this.entries); - return html`