mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Pass placeholders to config and option flow title (#15746)
This commit is contained in:
parent
8e8fb4ea13
commit
40b9e62a87
@ -55,7 +55,8 @@ export const showConfigFlowDialog = (
|
|||||||
renderShowFormStepHeader(hass, step) {
|
renderShowFormStepHeader(hass, step) {
|
||||||
return (
|
return (
|
||||||
hass.localize(
|
hass.localize(
|
||||||
`component.${step.handler}.config.step.${step.step_id}.title`
|
`component.${step.handler}.config.step.${step.step_id}.title`,
|
||||||
|
step.description_placeholders
|
||||||
) || hass.localize(`component.${step.handler}.title`)
|
) || hass.localize(`component.${step.handler}.title`)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@ -67,7 +67,8 @@ export const showOptionsFlowDialog = (
|
|||||||
renderShowFormStepHeader(hass, step) {
|
renderShowFormStepHeader(hass, step) {
|
||||||
return (
|
return (
|
||||||
hass.localize(
|
hass.localize(
|
||||||
`component.${configEntry.domain}.options.step.${step.step_id}.title`
|
`component.${configEntry.domain}.options.step.${step.step_id}.title`,
|
||||||
|
step.description_placeholders
|
||||||
) || hass.localize(`ui.dialogs.options_flow.form.header`)
|
) || hass.localize(`ui.dialogs.options_flow.form.header`)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user