mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix Options flow missing submit button & finish button. (#17361)
* Fix missing submit button in options flow * Fix missing header and finish button at end of options flow * load config translations for options flow * one more revert
This commit is contained in:
parent
795831d4cf
commit
308d4b0a62
@ -23,6 +23,7 @@ export const showConfigFlowDialog = (
|
||||
createFlow: async (hass, handler) => {
|
||||
const [step] = await Promise.all([
|
||||
createConfigFlow(hass, handler),
|
||||
hass.loadFragmentTranslation("config"),
|
||||
hass.loadBackendTranslation("config", handler),
|
||||
hass.loadBackendTranslation("selector", handler),
|
||||
// Used as fallback if no header defined for step
|
||||
@ -32,6 +33,7 @@ export const showConfigFlowDialog = (
|
||||
},
|
||||
fetchFlow: async (hass, flowId) => {
|
||||
const step = await fetchConfigFlow(hass, flowId);
|
||||
await hass.loadFragmentTranslation("config");
|
||||
await hass.loadBackendTranslation("config", step.handler);
|
||||
await hass.loadBackendTranslation("selector", step.handler);
|
||||
return step;
|
||||
|
@ -31,6 +31,7 @@ export const showOptionsFlowDialog = (
|
||||
createFlow: async (hass, handler) => {
|
||||
const [step] = await Promise.all([
|
||||
createOptionsFlow(hass, handler),
|
||||
hass.loadFragmentTranslation("config"),
|
||||
hass.loadBackendTranslation("options", configEntry.domain),
|
||||
hass.loadBackendTranslation("selector", configEntry.domain),
|
||||
]);
|
||||
@ -39,6 +40,7 @@ export const showOptionsFlowDialog = (
|
||||
fetchFlow: async (hass, flowId) => {
|
||||
const [step] = await Promise.all([
|
||||
fetchOptionsFlow(hass, flowId),
|
||||
hass.loadFragmentTranslation("config"),
|
||||
hass.loadBackendTranslation("options", configEntry.domain),
|
||||
hass.loadBackendTranslation("selector", configEntry.domain),
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user