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