Stop using ha-markdown on the auth page (#18480)

This commit is contained in:
Kendell R 2023-11-01 07:36:17 -07:00 committed by GitHub
parent 463cfb869f
commit a9e34d7590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 17 deletions

View File

@ -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")}:
<ha-markdown
allowsvg
breaks
.content=${this.localize(
`ui.panel.page-authorize.form.providers.${step.handler[0]}.abort.${step.reason}`
)}
></ha-markdown>
${this.localize(
`ui.panel.page-authorize.form.providers.${step.handler[0]}.abort.${step.reason}`
)}
`;
case "form":
return html`
${this._computeStepDescription(step)
? html`
<ha-markdown
breaks
.content=${this._computeStepDescription(step)}
></ha-markdown>
`
: nothing}
${this._computeStepDescription(step)}
<ha-auth-form
.data=${this._stepData}
.schema=${autocompleteLoginFields(step.data_schema)}

View File

@ -5589,7 +5589,7 @@
"data": {
"code": "Two-factor authentication code"
},
"description": "Open the **{mfa_module_name}** on your device to view your two-factor authentication code and verify your identity:"
"description": "Open the {mfa_module_name} on your device to view your two-factor authentication code."
}
},
"error": {