mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Fixed comments
This commit is contained in:
parent
b609890f28
commit
370d92213b
@ -100,7 +100,7 @@ class DialogConfigEntrySystemOptions extends LitElement {
|
|||||||
) || this._params.entry.domain
|
) || this._params.entry.domain
|
||||||
)}
|
)}
|
||||||
</p>`}
|
</p>`}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${!this._disableNewEntities}
|
.checked=${!this._disableNewEntities}
|
||||||
|
@ -133,7 +133,7 @@ class CloudAlexa extends LitElement {
|
|||||||
.label=${this.hass!.localize(
|
.label=${this.hass!.localize(
|
||||||
"ui.panel.config.cloud.alexa.expose"
|
"ui.panel.config.cloud.alexa.expose"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass!)}"
|
.dir=${computeRTLDirection(this.hass!)}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.entityId=${entity.entity_id}
|
.entityId=${entity.entity_id}
|
||||||
|
@ -84,6 +84,7 @@ class CloudGoogleAssistant extends LitElement {
|
|||||||
const filterFunc = this._getEntityFilterFunc(
|
const filterFunc = this._getEntityFilterFunc(
|
||||||
this.cloudStatus.google_entities
|
this.cloudStatus.google_entities
|
||||||
);
|
);
|
||||||
|
const dir = computeRTLDirection(this.hass!);
|
||||||
|
|
||||||
// We will only generate `isInitialExposed` during first render.
|
// We will only generate `isInitialExposed` during first render.
|
||||||
// On each subsequent render we will use the same set so that cards
|
// On each subsequent render we will use the same set so that cards
|
||||||
@ -134,7 +135,7 @@ class CloudGoogleAssistant extends LitElement {
|
|||||||
.label=${this.hass!.localize(
|
.label=${this.hass!.localize(
|
||||||
"ui.panel.config.cloud.google.expose"
|
"ui.panel.config.cloud.google.expose"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass!)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.entityId=${entity.entity_id}
|
.entityId=${entity.entity_id}
|
||||||
@ -152,7 +153,7 @@ class CloudGoogleAssistant extends LitElement {
|
|||||||
.label=${this.hass!.localize(
|
.label=${this.hass!.localize(
|
||||||
"ui.panel.config.cloud.google.disable_2FA"
|
"ui.panel.config.cloud.google.disable_2FA"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass!)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.entityId=${entity.entity_id}
|
.entityId=${entity.entity_id}
|
||||||
|
@ -51,6 +51,8 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
|
|||||||
return html``;
|
return html``;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const dir = computeRTLDirection(this.hass!);
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@ -71,7 +73,7 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
|
|||||||
.label=${this.hass!.localize(
|
.label=${this.hass!.localize(
|
||||||
"ui.dialogs.mqtt_device_debug_info.deserialize"
|
"ui.dialogs.mqtt_device_debug_info.deserialize"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._showDeserialized}
|
.checked=${this._showDeserialized}
|
||||||
@ -85,7 +87,7 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
|
|||||||
.label=${this.hass!.localize(
|
.label=${this.hass!.localize(
|
||||||
"ui.dialogs.mqtt_device_debug_info.show_as_yaml"
|
"ui.dialogs.mqtt_device_debug_info.show_as_yaml"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._showAsYaml}
|
.checked=${this._showAsYaml}
|
||||||
|
@ -75,6 +75,8 @@ export class DialogLovelaceDashboardDetail extends LitElement {
|
|||||||
this._params.urlPath !== "lovelace" &&
|
this._params.urlPath !== "lovelace" &&
|
||||||
!/^[a-zA-Z0-9_-]+-[a-zA-Z0-9_-]+$/.test(this._urlPath);
|
!/^[a-zA-Z0-9_-]+-[a-zA-Z0-9_-]+$/.test(this._urlPath);
|
||||||
const titleInvalid = !this._title.trim();
|
const titleInvalid = !this._title.trim();
|
||||||
|
const dir = computeRTLDirection(this.hass);
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@ -149,7 +151,7 @@ export class DialogLovelaceDashboardDetail extends LitElement {
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.config.lovelace.dashboards.detail.show_sidebar"
|
"ui.panel.config.lovelace.dashboards.detail.show_sidebar"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._showInSidebar}
|
.checked=${this._showInSidebar}
|
||||||
@ -163,7 +165,7 @@ export class DialogLovelaceDashboardDetail extends LitElement {
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.config.lovelace.dashboards.detail.require_admin"
|
"ui.panel.config.lovelace.dashboards.detail.require_admin"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._requireAdmin}
|
.checked=${this._requireAdmin}
|
||||||
|
@ -116,7 +116,7 @@ export class DialogAddUser extends LitElement {
|
|||||||
></paper-input>
|
></paper-input>
|
||||||
<ha-formfield
|
<ha-formfield
|
||||||
.label=${this.hass.localize("ui.panel.config.users.editor.admin")}
|
.label=${this.hass.localize("ui.panel.config.users.editor.admin")}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-switch .checked=${this._isAdmin} @change=${this._adminChanged}>
|
<ha-switch .checked=${this._isAdmin} @change=${this._adminChanged}>
|
||||||
</ha-switch>
|
</ha-switch>
|
||||||
|
@ -103,7 +103,7 @@ class DialogUserDetail extends LitElement {
|
|||||||
></paper-input>
|
></paper-input>
|
||||||
<ha-formfield
|
<ha-formfield
|
||||||
.label=${this.hass.localize("ui.panel.config.users.editor.admin")}
|
.label=${this.hass.localize("ui.panel.config.users.editor.admin")}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.disabled=${user.system_generated}
|
.disabled=${user.system_generated}
|
||||||
|
@ -187,7 +187,7 @@ class DialogZoneDetail extends LitElement {
|
|||||||
.label=${this.hass!.localize(
|
.label=${this.hass!.localize(
|
||||||
"ui.panel.config.zone.detail.passive"
|
"ui.panel.config.zone.detail.passive"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._passive}
|
.checked=${this._passive}
|
||||||
|
@ -103,6 +103,7 @@ export class HuiButtonCardEditor extends LitElement
|
|||||||
"call-service",
|
"call-service",
|
||||||
"none",
|
"none",
|
||||||
];
|
];
|
||||||
|
const dir = computeRTLDirection(this.hass!);
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
@ -149,7 +150,7 @@ export class HuiButtonCardEditor extends LitElement
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.generic.show_name"
|
"ui.panel.lovelace.editor.card.generic.show_name"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked="${this._config!.show_name !== false}"
|
.checked="${this._config!.show_name !== false}"
|
||||||
@ -163,7 +164,7 @@ export class HuiButtonCardEditor extends LitElement
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.generic.show_icon"
|
"ui.panel.lovelace.editor.card.generic.show_icon"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked="${this._config!.show_icon !== false}"
|
.checked="${this._config!.show_icon !== false}"
|
||||||
|
@ -94,7 +94,7 @@ export class HuiEntitiesCardEditor extends LitElement
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.entities.show_header_toggle"
|
"ui.panel.lovelace.editor.card.entities.show_header_toggle"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked="${this._config!.show_header_toggle !== false}"
|
.checked="${this._config!.show_header_toggle !== false}"
|
||||||
|
@ -147,7 +147,7 @@ export class HuiGaugeCardEditor extends LitElement
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.gauge.severity.define"
|
"ui.panel.lovelace.editor.card.gauge.severity.define"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked="${this._config!.severity !== undefined}"
|
.checked="${this._config!.severity !== undefined}"
|
||||||
|
@ -84,6 +84,8 @@ export class HuiGlanceCardEditor extends LitElement
|
|||||||
return html``;
|
return html``;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const dir = computeRTLDirection(this.hass!);
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
@ -122,7 +124,7 @@ export class HuiGlanceCardEditor extends LitElement
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.generic.show_name"
|
"ui.panel.lovelace.editor.card.generic.show_name"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._config!.show_name !== false}
|
.checked=${this._config!.show_name !== false}
|
||||||
@ -136,7 +138,7 @@ export class HuiGlanceCardEditor extends LitElement
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.generic.show_icon"
|
"ui.panel.lovelace.editor.card.generic.show_icon"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._config!.show_icon !== false}
|
.checked=${this._config!.show_icon !== false}
|
||||||
@ -151,7 +153,7 @@ export class HuiGlanceCardEditor extends LitElement
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.generic.show_state"
|
"ui.panel.lovelace.editor.card.generic.show_state"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._config!.show_state !== false}
|
.checked=${this._config!.show_state !== false}
|
||||||
|
@ -125,7 +125,7 @@ export class HuiMapCardEditor extends LitElement implements LovelaceCardEditor {
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.map.dark_mode"
|
"ui.panel.lovelace.editor.card.map.dark_mode"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked="${this._dark_mode}"
|
.checked="${this._dark_mode}"
|
||||||
|
@ -108,6 +108,7 @@ export class HuiPictureEntityCardEditor extends LitElement
|
|||||||
|
|
||||||
const actions = ["more-info", "toggle", "navigate", "call-service", "none"];
|
const actions = ["more-info", "toggle", "navigate", "call-service", "none"];
|
||||||
const views = ["auto", "live"];
|
const views = ["auto", "live"];
|
||||||
|
const dir = computeRTLDirection(this.hass!);
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
@ -194,7 +195,7 @@ export class HuiPictureEntityCardEditor extends LitElement
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.generic.show_name"
|
"ui.panel.lovelace.editor.card.generic.show_name"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked="${this._config!.show_name !== false}"
|
.checked="${this._config!.show_name !== false}"
|
||||||
@ -208,7 +209,7 @@ export class HuiPictureEntityCardEditor extends LitElement
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.generic.show_state"
|
"ui.panel.lovelace.editor.card.generic.show_state"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${dir}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked="${this._config!.show_state !== false}"
|
.checked="${this._config!.show_state !== false}"
|
||||||
|
@ -115,7 +115,7 @@ export class HuiWeatherForecastCardEditor extends LitElement
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.weather-forecast.show_forecast"
|
"ui.panel.lovelace.editor.card.weather-forecast.show_forecast"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass)}"
|
.dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._config!.show_forecast !== false}
|
.checked=${this._config!.show_forecast !== false}
|
||||||
|
@ -78,7 +78,7 @@ export class HuiSaveConfig extends LitElement {
|
|||||||
.label=${this.hass!.localize(
|
.label=${this.hass!.localize(
|
||||||
"ui.panel.lovelace.editor.save_config.empty_config"
|
"ui.panel.lovelace.editor.save_config.empty_config"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass!)}"
|
.dir=${computeRTLDirection(this.hass!)}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._emptyConfig}
|
.checked=${this._emptyConfig}
|
||||||
|
@ -127,7 +127,7 @@ export class HuiViewEditor extends LitElement {
|
|||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.view.panel_mode.title"
|
"ui.panel.lovelace.editor.view.panel_mode.title"
|
||||||
)}
|
)}
|
||||||
.dir="${computeRTLDirection(this.hass!)}"
|
.dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${this._panel !== false}
|
.checked=${this._panel !== false}
|
||||||
|
@ -76,7 +76,7 @@ class HuiInputNumberEntityRow extends LitElement implements LovelaceRow {
|
|||||||
<div class="flex">
|
<div class="flex">
|
||||||
<ha-slider
|
<ha-slider
|
||||||
.disabled=${UNAVAILABLE_STATES.includes(stateObj.state)}
|
.disabled=${UNAVAILABLE_STATES.includes(stateObj.state)}
|
||||||
.dir="${computeRTLDirection(this.hass!)}"
|
.dir=${computeRTLDirection(this.hass)}
|
||||||
.step="${Number(stateObj.attributes.step)}"
|
.step="${Number(stateObj.attributes.step)}"
|
||||||
.min="${Number(stateObj.attributes.min)}"
|
.min="${Number(stateObj.attributes.min)}"
|
||||||
.max="${Number(stateObj.attributes.max)}"
|
.max="${Number(stateObj.attributes.max)}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user