mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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) {
|
||||
return (
|
||||
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`)
|
||||
);
|
||||
},
|
||||
|
@ -67,7 +67,8 @@ export const showOptionsFlowDialog = (
|
||||
renderShowFormStepHeader(hass, step) {
|
||||
return (
|
||||
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`)
|
||||
);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user