mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
Fix description and title of options flow (#4910)
This commit is contained in:
parent
099430238c
commit
52ae01ea74
@ -47,7 +47,7 @@ export const showOptionsFlowDialog = (
|
|||||||
renderShowFormStepHeader(hass, step) {
|
renderShowFormStepHeader(hass, step) {
|
||||||
return (
|
return (
|
||||||
hass.localize(
|
hass.localize(
|
||||||
`component.${step.handler}.options.step.${step.step_id}.title`
|
`component.${configEntry.domain}.options.step.${step.step_id}.title`
|
||||||
) || hass.localize(`ui.dialogs.options_flow.form.header`)
|
) || hass.localize(`ui.dialogs.options_flow.form.header`)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@ -55,7 +55,7 @@ export const showOptionsFlowDialog = (
|
|||||||
renderShowFormStepDescription(hass, step) {
|
renderShowFormStepDescription(hass, step) {
|
||||||
const description = localizeKey(
|
const description = localizeKey(
|
||||||
hass.localize,
|
hass.localize,
|
||||||
`component.${step.handler}.config.step.${step.step_id}.description`,
|
`component.${configEntry.domain}.options.step.${step.step_id}.description`,
|
||||||
step.description_placeholders
|
step.description_placeholders
|
||||||
);
|
);
|
||||||
return description
|
return description
|
||||||
|
Loading…
x
Reference in New Issue
Block a user