mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Lazy load language picker in auth and onboarding (#18806)
This commit is contained in:
parent
e730649a8d
commit
4a53de4466
@ -5,7 +5,6 @@ import punycode from "punycode";
|
|||||||
import { applyThemesOnElement } from "../common/dom/apply_themes_on_element";
|
import { applyThemesOnElement } from "../common/dom/apply_themes_on_element";
|
||||||
import { extractSearchParamsObject } from "../common/url/search-params";
|
import { extractSearchParamsObject } from "../common/url/search-params";
|
||||||
import "../components/ha-alert";
|
import "../components/ha-alert";
|
||||||
import "../components/ha-language-picker";
|
|
||||||
import {
|
import {
|
||||||
AuthProvider,
|
AuthProvider,
|
||||||
AuthUrlSearchParams,
|
AuthUrlSearchParams,
|
||||||
@ -274,6 +273,8 @@ export class HaAuthorize extends litLocalizeLiteMixin(LitElement) {
|
|||||||
this._ownInstance = true;
|
this._ownInstance = true;
|
||||||
registerServiceWorker(this, false);
|
registerServiceWorker(this, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import("../components/ha-language-picker");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected updated(changedProps: PropertyValues) {
|
protected updated(changedProps: PropertyValues) {
|
||||||
|
@ -22,7 +22,6 @@ import {
|
|||||||
} from "../common/url/search-params";
|
} from "../common/url/search-params";
|
||||||
import { subscribeOne } from "../common/util/subscribe-one";
|
import { subscribeOne } from "../common/util/subscribe-one";
|
||||||
import "../components/ha-card";
|
import "../components/ha-card";
|
||||||
import "../components/ha-language-picker";
|
|
||||||
import { AuthUrlSearchParams, hassUrl } from "../data/auth";
|
import { AuthUrlSearchParams, hassUrl } from "../data/auth";
|
||||||
import {
|
import {
|
||||||
OnboardingResponses,
|
OnboardingResponses,
|
||||||
@ -222,6 +221,7 @@ class HaOnboarding extends litLocalizeLiteMixin(HassElement) {
|
|||||||
import("./particles");
|
import("./particles");
|
||||||
}
|
}
|
||||||
makeDialogManager(this, this.shadowRoot!);
|
makeDialogManager(this, this.shadowRoot!);
|
||||||
|
import("../components/ha-language-picker");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected updated(changedProps: PropertyValues) {
|
protected updated(changedProps: PropertyValues) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user