From a68fa06ff9a23928564eac88def7f6a8eb2e77c1 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 19 Feb 2023 19:45:57 +0100 Subject: [PATCH] web/flows: fix fa:// icons in sources not shown correctly Signed-off-by: Jens Langhammer --- web/src/flow/stages/identification/IdentificationStage.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/flow/stages/identification/IdentificationStage.ts b/web/src/flow/stages/identification/IdentificationStage.ts index 9b167b526..25f407a39 100644 --- a/web/src/flow/stages/identification/IdentificationStage.ts +++ b/web/src/flow/stages/identification/IdentificationStage.ts @@ -158,7 +158,12 @@ export class IdentificationStage extends BaseStage< renderSource(source: LoginSource): TemplateResult { let icon = html``; if (source.iconUrl) { - icon = html`${source.name}`; + if (source.iconUrl.startsWith("fa://")) { + const url = source.iconUrl.replaceAll("fa://", ""); + icon = html``; + } else { + icon = html`${source.name}`; + } } return html`