diff --git a/src/components/ha-clickable-list-item.ts b/src/components/ha-clickable-list-item.ts index 895c67954a..41c3734ab4 100644 --- a/src/components/ha-clickable-list-item.ts +++ b/src/components/ha-clickable-list-item.ts @@ -55,7 +55,6 @@ export class HaClickableListItem extends ListItemBase { align-items: center; padding-left: var(--mdc-list-side-padding, 20px); padding-right: var(--mdc-list-side-padding, 20px); - font-weight: 500; } `, ]; diff --git a/src/panels/config/ha-panel-config.ts b/src/panels/config/ha-panel-config.ts index a467dcbe6f..313a9b18f7 100644 --- a/src/panels/config/ha-panel-config.ts +++ b/src/panels/config/ha-panel-config.ts @@ -254,7 +254,7 @@ export const configSections: { [name: string]: PageNavigation[] } = { }, { component: "zone", - path: "/config/location", + path: "/config/zone", translationKey: "ui.panel.config.zone.caption", iconPath: mdiMapMarkerRadius, iconColor: "#E48629", @@ -436,6 +436,10 @@ class HaPanelConfig extends HassRouterPage { tag: "ha-config-helpers", load: () => import("./helpers/ha-config-helpers"), }, + server_control: { + tag: "ha-config-server-control", + load: () => import("./server_control/ha-config-server-control"), + }, storage: { tag: "ha-config-section-storage", load: () => import("./core/ha-config-section-storage"), @@ -444,7 +448,7 @@ class HaPanelConfig extends HassRouterPage { tag: "ha-config-users", load: () => import("./users/ha-config-users"), }, - location: { + zone: { tag: "ha-config-zone", load: () => import("./zone/ha-config-zone"), }, diff --git a/src/panels/config/info/ha-config-info.ts b/src/panels/config/info/ha-config-info.ts index cb61dbc46f..e27f489d92 100644 --- a/src/panels/config/info/ha-config-info.ts +++ b/src/panels/config/info/ha-config-info.ts @@ -1,11 +1,10 @@ import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit"; import { property } from "lit/decorators"; import "../../../components/ha-logo-svg"; -import "../../../layouts/hass-tabs-subpage"; +import "../../../layouts/hass-subpage"; import { haStyle } from "../../../resources/styles"; import { HomeAssistant, Route } from "../../../types"; import { documentationUrl } from "../../../util/documentation-url"; -import { configSections } from "../ha-panel-config"; import "./integrations-card"; import "./system-health-card"; @@ -29,12 +28,11 @@ class HaConfigInfo extends LitElement { (window as any).CUSTOM_UI_LIST || []; return html` -
0 - ? html` -
- ${this.hass.localize("ui.panel.config.info.custom_uis")} - ${customUiList.map( - (item) => html` -
- ${item.name}: - ${item.version} -
- ` - )} -
- ` - : ""} + ${ + customUiList.length > 0 + ? html` +
+ ${this.hass.localize("ui.panel.config.info.custom_uis")} + ${customUiList.map( + (item) => html` +
+ ${item.name}: ${item.version} +
+ ` + )} +
+ ` + : "" + }

diff --git a/src/panels/config/server_control/ha-config-server-control.ts b/src/panels/config/server_control/ha-config-server-control.ts index 6686590646..03440dd2f5 100644 --- a/src/panels/config/server_control/ha-config-server-control.ts +++ b/src/panels/config/server_control/ha-config-server-control.ts @@ -18,13 +18,13 @@ import "../ha-config-section"; export class HaConfigServerControl extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public isWide!: boolean; + @property({ type: Boolean }) public isWide!: boolean; - @property() public narrow!: boolean; + @property({ type: Boolean }) public narrow!: boolean; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; - @property() public showAdvanced!: boolean; + @property({ type: Boolean }) public showAdvanced!: boolean; @state() private _validating = false; @@ -54,81 +54,73 @@ export class HaConfigServerControl extends LitElement { .narrow=${this.narrow} back-path="/config/system" .showAdvanced=${this.showAdvanced} + .header=${this.hass.localize("ui.panel.config.server_control.caption")} > - - ${this.hass.localize( - "ui.panel.config.server_control.caption" - )} - ${this.hass.localize( - "ui.panel.config.server_control.description" - )} - +
${this.showAdvanced - ? html` -
- ${this.hass.localize( - "ui.panel.config.server_control.section.validation.introduction" + ? html` + - ${!this._validating - ? html` - ${this._isValid - ? html`
- ${this.hass.localize( - "ui.panel.config.server_control.section.validation.valid" - )} -
` - : ""} - - ${this.hass.localize( - "ui.panel.config.server_control.section.validation.check_config" - )} - - ` - : html` - - `} -
- ` - : html` -
- - ${this.hass.localize( - "ui.panel.config.server_control.section.validation.invalid" - )} - - - ${this.hass.localize( - "ui.panel.config.server_control.section.validation.check_config" - )} - -
-
- ${this._validateLog} -
- `} -
- ` + > +
+ ${this.hass.localize( + "ui.panel.config.server_control.section.validation.introduction" + )} + ${!this._validateLog + ? html` +
+ ${!this._validating + ? html` + ${this._isValid + ? html`
+ ${this.hass.localize( + "ui.panel.config.server_control.section.validation.valid" + )} +
` + : ""} + + ${this.hass.localize( + "ui.panel.config.server_control.section.validation.check_config" + )} + + ` + : html` + + `} +
+ ` + : html` +
+ + ${this.hass.localize( + "ui.panel.config.server_control.section.validation.invalid" + )} + + + ${this.hass.localize( + "ui.panel.config.server_control.section.validation.check_config" + )} + +
+
+ ${this._validateLog} +
+ `} +
+ + ` : ""} ${this._reloadableDomains.map( (domain) => - html`
- ${this.hass.localize( - `ui.panel.config.server_control.section.reloading.${domain}` - ) || - this.hass.localize( - "ui.panel.config.server_control.section.reloading.reload", - "domain", - domainToName(this.hass.localize, domain) - )} - -
` + html` +
+ ${this.hass.localize( + `ui.panel.config.server_control.section.reloading.${domain}` + ) || + this.hass.localize( + "ui.panel.config.server_control.section.reloading.reload", + "domain", + domainToName(this.hass.localize, domain) + )} + +
+ ` )}
` : ""} -
+
`; } @@ -251,10 +245,22 @@ export class HaConfigServerControl extends LitElement { direction: ltr; } - ha-config-section { - padding-bottom: 24px; + .content { + padding: 28px 20px 0; + max-width: 1040px; + margin: 0 auto; + } + + ha-card { + margin-top: 24px; } `, ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ha-config-server-control": HaConfigServerControl; + } +}