From a9e34d7590de36b5111088b1d85c45ded04851d9 Mon Sep 17 00:00:00 2001 From: Kendell R Date: Wed, 1 Nov 2023 07:36:17 -0700 Subject: [PATCH] Stop using ha-markdown on the auth page (#18480) --- src/auth/ha-auth-flow.ts | 20 ++++---------------- src/translations/en.json | 2 +- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/auth/ha-auth-flow.ts b/src/auth/ha-auth-flow.ts index f8f00cc972..2455f1e08a 100644 --- a/src/auth/ha-auth-flow.ts +++ b/src/auth/ha-auth-flow.ts @@ -8,7 +8,6 @@ import "../components/ha-alert"; import "../components/ha-checkbox"; import { computeInitialHaFormData } from "../components/ha-form/compute-initial-ha-form-data"; import "../components/ha-formfield"; -import "../components/ha-markdown"; import { AuthProvider, autocompleteLoginFields } from "../data/auth"; import { DataEntryFlowStep, @@ -182,24 +181,13 @@ export class HaAuthFlow extends LitElement { case "abort": return html` ${this.localize("ui.panel.page-authorize.abort_intro")}: - + ${this.localize( + `ui.panel.page-authorize.form.providers.${step.handler[0]}.abort.${step.reason}` + )} `; case "form": return html` - ${this._computeStepDescription(step) - ? html` - - ` - : nothing} + ${this._computeStepDescription(step)}