mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Add header and description to progress options flow (#9423)
This commit is contained in:
parent
38640c99e3
commit
22253a3385
@ -108,12 +108,28 @@ export const showOptionsFlowDialog = (
|
|||||||
`;
|
`;
|
||||||
},
|
},
|
||||||
|
|
||||||
renderShowFormProgressHeader(_hass, _step) {
|
renderShowFormProgressHeader(hass, step) {
|
||||||
return "";
|
return (
|
||||||
|
hass.localize(
|
||||||
|
`component.${configEntry.domain}.options.step.${step.step_id}.title`
|
||||||
|
) || hass.localize(`component.${configEntry.domain}.title`)
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
renderShowFormProgressDescription(_hass, _step) {
|
renderShowFormProgressDescription(hass, step) {
|
||||||
return "";
|
const description = hass.localize(
|
||||||
|
`component.${configEntry.domain}.options.progress.${step.progress_action}`,
|
||||||
|
step.description_placeholders
|
||||||
|
);
|
||||||
|
return description
|
||||||
|
? html`
|
||||||
|
<ha-markdown
|
||||||
|
allowsvg
|
||||||
|
breaks
|
||||||
|
.content=${description}
|
||||||
|
></ha-markdown>
|
||||||
|
`
|
||||||
|
: "";
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user