mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 21:06:34 +00:00
Fix rendering config entry titles (#13060)
* Fix rendering config entry titles * Fix location height * Only fetch installation type when user not created yet
This commit is contained in:
parent
6ca3f06ea0
commit
1cc02415d3
@ -124,7 +124,6 @@ class HaOnboarding extends litLocalizeLiteMixin(HassElement) {
|
|||||||
protected firstUpdated(changedProps: PropertyValues) {
|
protected firstUpdated(changedProps: PropertyValues) {
|
||||||
super.firstUpdated(changedProps);
|
super.firstUpdated(changedProps);
|
||||||
this._fetchOnboardingSteps();
|
this._fetchOnboardingSteps();
|
||||||
this._fetchInstallationType();
|
|
||||||
import("./onboarding-integrations");
|
import("./onboarding-integrations");
|
||||||
import("./onboarding-core-config");
|
import("./onboarding-core-config");
|
||||||
registerServiceWorker(this, false);
|
registerServiceWorker(this, false);
|
||||||
@ -215,6 +214,9 @@ class HaOnboarding extends litLocalizeLiteMixin(HassElement) {
|
|||||||
});
|
});
|
||||||
history.replaceState(null, "", location.pathname);
|
history.replaceState(null, "", location.pathname);
|
||||||
await this._connectHass(auth);
|
await this._connectHass(auth);
|
||||||
|
} else {
|
||||||
|
// User creating screen needs to know the installation type.
|
||||||
|
this._fetchInstallationType();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._steps = steps;
|
this._steps = steps;
|
||||||
|
@ -378,6 +378,10 @@ class OnboardingCoreConfig extends LitElement {
|
|||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ha-locations-editor {
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
.flex {
|
.flex {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,10 @@ class OnboardingIntegrations extends LitElement {
|
|||||||
// Render discovered and existing entries together sorted by localized title.
|
// Render discovered and existing entries together sorted by localized title.
|
||||||
const entries: Array<[string, TemplateResult]> = this._entries.map(
|
const entries: Array<[string, TemplateResult]> = this._entries.map(
|
||||||
(entry) => {
|
(entry) => {
|
||||||
const title = domainToName(this.hass.localize, entry.domain);
|
const title =
|
||||||
|
entry.title ||
|
||||||
|
domainToName(this.hass.localize, entry.domain) ||
|
||||||
|
entry.domain;
|
||||||
return [
|
return [
|
||||||
title,
|
title,
|
||||||
html`
|
html`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user