mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Dont load unnecessary translations for helper dialog (#21573)
This commit is contained in:
parent
54e8a34f21
commit
0f21dfadf1
@ -123,13 +123,10 @@ export class DialogHelperDetail extends LitElement {
|
|||||||
this._opened = true;
|
this._opened = true;
|
||||||
await this.updateComplete;
|
await this.updateComplete;
|
||||||
this.hass.loadFragmentTranslation("config");
|
this.hass.loadFragmentTranslation("config");
|
||||||
Promise.all([
|
const flows = await getConfigFlowHandlers(this.hass, ["helper"]);
|
||||||
getConfigFlowHandlers(this.hass, ["helper"]),
|
await this.hass.loadBackendTranslation("title", flows, true);
|
||||||
// Ensure the titles are loaded before we render the flows.
|
// Ensure the titles are loaded before we render the flows.
|
||||||
this.hass.loadBackendTranslation("title", undefined, true),
|
this._helperFlows = flows;
|
||||||
]).then(([flows]) => {
|
|
||||||
this._helperFlows = flows;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public closeDialog(): void {
|
public closeDialog(): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user