mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Load title when fetching flow (#25951)
This commit is contained in:
parent
a952b880d8
commit
b154bc1502
@ -35,10 +35,16 @@ export const showConfigFlowDialog = (
|
|||||||
return step;
|
return step;
|
||||||
},
|
},
|
||||||
fetchFlow: async (hass, flowId) => {
|
fetchFlow: async (hass, flowId) => {
|
||||||
const step = await fetchConfigFlow(hass, flowId);
|
const [step] = await Promise.all([
|
||||||
await hass.loadFragmentTranslation("config");
|
fetchConfigFlow(hass, flowId),
|
||||||
await hass.loadBackendTranslation("config", step.handler);
|
hass.loadFragmentTranslation("config"),
|
||||||
await hass.loadBackendTranslation("selector", step.handler);
|
]);
|
||||||
|
await Promise.all([
|
||||||
|
hass.loadBackendTranslation("config", step.handler),
|
||||||
|
hass.loadBackendTranslation("selector", step.handler),
|
||||||
|
// Used as fallback if no header defined for step
|
||||||
|
hass.loadBackendTranslation("title", step.handler),
|
||||||
|
]);
|
||||||
return step;
|
return step;
|
||||||
},
|
},
|
||||||
handleFlowStep: handleConfigFlowStep,
|
handleFlowStep: handleConfigFlowStep,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user