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 { extractSearchParamsObject } from "../common/url/search-params";
|
||||
import "../components/ha-alert";
|
||||
import "../components/ha-language-picker";
|
||||
import {
|
||||
AuthProvider,
|
||||
AuthUrlSearchParams,
|
||||
|
@ -274,6 +273,8 @@ export class HaAuthorize extends litLocalizeLiteMixin(LitElement) {
|
|||
this._ownInstance = true;
|
||||
registerServiceWorker(this, false);
|
||||
}
|
||||
|
||||
import("../components/ha-language-picker");
|
||||
}
|
||||
|
||||
protected updated(changedProps: PropertyValues) {
|
||||
|
|
|
@ -22,7 +22,6 @@ import {
|
|||
} from "../common/url/search-params";
|
||||
import { subscribeOne } from "../common/util/subscribe-one";
|
||||
import "../components/ha-card";
|
||||
import "../components/ha-language-picker";
|
||||
import { AuthUrlSearchParams, hassUrl } from "../data/auth";
|
||||
import {
|
||||
OnboardingResponses,
|
||||
|
@ -222,6 +221,7 @@ class HaOnboarding extends litLocalizeLiteMixin(HassElement) {
|
|||
import("./particles");
|
||||
}
|
||||
makeDialogManager(this, this.shadowRoot!);
|
||||
import("../components/ha-language-picker");
|
||||
}
|
||||
|
||||
protected updated(changedProps: PropertyValues) {
|
||||
|
|
Loading…
Reference in New Issue