mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Stop using ha-markdown on the auth page (#18480)
This commit is contained in:
parent
463cfb869f
commit
a9e34d7590
@ -8,7 +8,6 @@ import "../components/ha-alert";
|
|||||||
import "../components/ha-checkbox";
|
import "../components/ha-checkbox";
|
||||||
import { computeInitialHaFormData } from "../components/ha-form/compute-initial-ha-form-data";
|
import { computeInitialHaFormData } from "../components/ha-form/compute-initial-ha-form-data";
|
||||||
import "../components/ha-formfield";
|
import "../components/ha-formfield";
|
||||||
import "../components/ha-markdown";
|
|
||||||
import { AuthProvider, autocompleteLoginFields } from "../data/auth";
|
import { AuthProvider, autocompleteLoginFields } from "../data/auth";
|
||||||
import {
|
import {
|
||||||
DataEntryFlowStep,
|
DataEntryFlowStep,
|
||||||
@ -182,24 +181,13 @@ export class HaAuthFlow extends LitElement {
|
|||||||
case "abort":
|
case "abort":
|
||||||
return html`
|
return html`
|
||||||
${this.localize("ui.panel.page-authorize.abort_intro")}:
|
${this.localize("ui.panel.page-authorize.abort_intro")}:
|
||||||
<ha-markdown
|
${this.localize(
|
||||||
allowsvg
|
`ui.panel.page-authorize.form.providers.${step.handler[0]}.abort.${step.reason}`
|
||||||
breaks
|
)}
|
||||||
.content=${this.localize(
|
|
||||||
`ui.panel.page-authorize.form.providers.${step.handler[0]}.abort.${step.reason}`
|
|
||||||
)}
|
|
||||||
></ha-markdown>
|
|
||||||
`;
|
`;
|
||||||
case "form":
|
case "form":
|
||||||
return html`
|
return html`
|
||||||
${this._computeStepDescription(step)
|
${this._computeStepDescription(step)}
|
||||||
? html`
|
|
||||||
<ha-markdown
|
|
||||||
breaks
|
|
||||||
.content=${this._computeStepDescription(step)}
|
|
||||||
></ha-markdown>
|
|
||||||
`
|
|
||||||
: nothing}
|
|
||||||
<ha-auth-form
|
<ha-auth-form
|
||||||
.data=${this._stepData}
|
.data=${this._stepData}
|
||||||
.schema=${autocompleteLoginFields(step.data_schema)}
|
.schema=${autocompleteLoginFields(step.data_schema)}
|
||||||
|
@ -5589,7 +5589,7 @@
|
|||||||
"data": {
|
"data": {
|
||||||
"code": "Two-factor authentication code"
|
"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": {
|
"error": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user