mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
Missing translation, code editor make ltr, checkbox alignment in rtl (#11419)
This commit is contained in:
parent
e4085fe1f6
commit
c4cad5bccd
@ -60,6 +60,7 @@ export class HaYamlEditor extends LitElement {
|
|||||||
mode="yaml"
|
mode="yaml"
|
||||||
.error=${this.isValid === false}
|
.error=${this.isValid === false}
|
||||||
@value-changed=${this._onChange}
|
@value-changed=${this._onChange}
|
||||||
|
dir="ltr"
|
||||||
></ha-code-editor>
|
></ha-code-editor>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ export class HaTraceBlueprintConfig extends LitElement {
|
|||||||
<ha-code-editor
|
<ha-code-editor
|
||||||
.value=${dump(this.trace.blueprint_inputs || "").trimRight()}
|
.value=${dump(this.trace.blueprint_inputs || "").trimRight()}
|
||||||
readOnly
|
readOnly
|
||||||
|
dir="ltr"
|
||||||
></ha-code-editor>
|
></ha-code-editor>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ export class HaTraceConfig extends LitElement {
|
|||||||
<ha-code-editor
|
<ha-code-editor
|
||||||
.value=${dump(this.trace.config).trimRight()}
|
.value=${dump(this.trace.config).trimRight()}
|
||||||
readOnly
|
readOnly
|
||||||
|
dir="ltr"
|
||||||
></ha-code-editor>
|
></ha-code-editor>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -150,6 +150,7 @@ export class HaTracePathDetails extends LitElement {
|
|||||||
? html`<ha-code-editor
|
? html`<ha-code-editor
|
||||||
.value=${dump(config).trimRight()}
|
.value=${dump(config).trimRight()}
|
||||||
readOnly
|
readOnly
|
||||||
|
dir="ltr"
|
||||||
></ha-code-editor>`
|
></ha-code-editor>`
|
||||||
: "Unable to find config";
|
: "Unable to find config";
|
||||||
}
|
}
|
||||||
|
@ -61,6 +61,7 @@ class HaPanelDevMqtt extends LitElement {
|
|||||||
mode="jinja2"
|
mode="jinja2"
|
||||||
.value=${this.payload}
|
.value=${this.payload}
|
||||||
@value-changed=${this._handlePayload}
|
@value-changed=${this._handlePayload}
|
||||||
|
dir="ltr"
|
||||||
></ha-code-editor>
|
></ha-code-editor>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
|
@ -42,7 +42,12 @@ class DialogZHADeviceZigbeeInfo extends LitElement {
|
|||||||
this.hass.localize(`ui.dialogs.zha_device_info.device_signature`)
|
this.hass.localize(`ui.dialogs.zha_device_info.device_signature`)
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ha-code-editor mode="yaml" readonly .value=${this._signature}>
|
<ha-code-editor
|
||||||
|
mode="yaml"
|
||||||
|
readonly
|
||||||
|
.value=${this._signature}
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
</ha-code-editor>
|
</ha-code-editor>
|
||||||
</ha-dialog>
|
</ha-dialog>
|
||||||
`;
|
`;
|
||||||
|
@ -94,6 +94,7 @@ class HaPanelDevEvent extends EventsMixin(LocalizeMixin(PolymerElement)) {
|
|||||||
value="[[eventData]]"
|
value="[[eventData]]"
|
||||||
error="[[!validJSON]]"
|
error="[[!validJSON]]"
|
||||||
on-value-changed="_yamlChanged"
|
on-value-changed="_yamlChanged"
|
||||||
|
dir="ltr"
|
||||||
></ha-code-editor>
|
></ha-code-editor>
|
||||||
</div>
|
</div>
|
||||||
<mwc-button on-click="fireEvent" raised disabled="[[!validJSON]]"
|
<mwc-button on-click="fireEvent" raised disabled="[[!validJSON]]"
|
||||||
|
@ -85,6 +85,7 @@ class HaPanelDevState extends EventsMixin(LocalizeMixin(PolymerElement)) {
|
|||||||
|
|
||||||
:host([rtl]) .entities th {
|
:host([rtl]) .entities th {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
direction: rtl;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entities tr {
|
.entities tr {
|
||||||
@ -145,7 +146,7 @@ class HaPanelDevState extends EventsMixin(LocalizeMixin(PolymerElement)) {
|
|||||||
[[localize('ui.panel.developer-tools.tabs.states.current_entities')]]
|
[[localize('ui.panel.developer-tools.tabs.states.current_entities')]]
|
||||||
</h1>
|
</h1>
|
||||||
<ha-expansion-panel
|
<ha-expansion-panel
|
||||||
header="Set state"
|
header="[[localize('ui.panel.developer-tools.tabs.states.set_state')]]"
|
||||||
outlined
|
outlined
|
||||||
expanded="[[_expanded]]"
|
expanded="[[_expanded]]"
|
||||||
on-expanded-changed="expandedChanged"
|
on-expanded-changed="expandedChanged"
|
||||||
@ -181,6 +182,7 @@ class HaPanelDevState extends EventsMixin(LocalizeMixin(PolymerElement)) {
|
|||||||
value="[[_stateAttributes]]"
|
value="[[_stateAttributes]]"
|
||||||
error="[[!validJSON]]"
|
error="[[!validJSON]]"
|
||||||
on-value-changed="_yamlChanged"
|
on-value-changed="_yamlChanged"
|
||||||
|
dir="ltr"
|
||||||
></ha-code-editor>
|
></ha-code-editor>
|
||||||
<div class="button-row">
|
<div class="button-row">
|
||||||
<mwc-button
|
<mwc-button
|
||||||
|
@ -132,6 +132,7 @@ class HaPanelDevTemplate extends LitElement {
|
|||||||
.error=${this._error}
|
.error=${this._error}
|
||||||
autofocus
|
autofocus
|
||||||
@value-changed=${this._templateChanged}
|
@value-changed=${this._templateChanged}
|
||||||
|
dir="ltr"
|
||||||
></ha-code-editor>
|
></ha-code-editor>
|
||||||
<mwc-button @click=${this._restoreDemo}>
|
<mwc-button @click=${this._restoreDemo}>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
|
@ -11,7 +11,6 @@ import {
|
|||||||
import { property, state, query } from "lit/decorators";
|
import { property, state, query } from "lit/decorators";
|
||||||
import { fireEvent } from "../../../common/dom/fire_event";
|
import { fireEvent } from "../../../common/dom/fire_event";
|
||||||
import { handleStructError } from "../../../common/structs/handle-errors";
|
import { handleStructError } from "../../../common/structs/handle-errors";
|
||||||
import { computeRTL } from "../../../common/util/compute_rtl";
|
|
||||||
import { deepEqual } from "../../../common/util/deep-equal";
|
import { deepEqual } from "../../../common/util/deep-equal";
|
||||||
import "../../../components/ha-circular-progress";
|
import "../../../components/ha-circular-progress";
|
||||||
import "../../../components/ha-code-editor";
|
import "../../../components/ha-code-editor";
|
||||||
@ -200,9 +199,9 @@ export abstract class HuiElementEditor<T> extends LitElement {
|
|||||||
autofocus
|
autofocus
|
||||||
.value=${this.yaml}
|
.value=${this.yaml}
|
||||||
.error=${Boolean(this._errors)}
|
.error=${Boolean(this._errors)}
|
||||||
.rtl=${computeRTL(this.hass)}
|
|
||||||
@value-changed=${this._handleYAMLChanged}
|
@value-changed=${this._handleYAMLChanged}
|
||||||
@keydown=${this._ignoreKeydown}
|
@keydown=${this._ignoreKeydown}
|
||||||
|
dir="ltr"
|
||||||
></ha-code-editor>
|
></ha-code-editor>
|
||||||
</div>
|
</div>
|
||||||
`}
|
`}
|
||||||
|
@ -15,7 +15,6 @@ import {
|
|||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { classMap } from "lit/directives/class-map";
|
import { classMap } from "lit/directives/class-map";
|
||||||
import { array, assert, object, optional, string, type } from "superstruct";
|
import { array, assert, object, optional, string, type } from "superstruct";
|
||||||
import { computeRTL } from "../../common/util/compute_rtl";
|
|
||||||
import { deepEqual } from "../../common/util/deep-equal";
|
import { deepEqual } from "../../common/util/deep-equal";
|
||||||
import "../../components/ha-circular-progress";
|
import "../../components/ha-circular-progress";
|
||||||
import "../../components/ha-code-editor";
|
import "../../components/ha-code-editor";
|
||||||
@ -92,10 +91,10 @@ class LovelaceFullConfigEditor extends LitElement {
|
|||||||
<ha-code-editor
|
<ha-code-editor
|
||||||
mode="yaml"
|
mode="yaml"
|
||||||
autofocus
|
autofocus
|
||||||
.rtl=${computeRTL(this.hass)}
|
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
@value-changed=${this._yamlChanged}
|
@value-changed=${this._yamlChanged}
|
||||||
@editor-save=${this._handleSave}
|
@editor-save=${this._handleSave}
|
||||||
|
dir="ltr"
|
||||||
>
|
>
|
||||||
</ha-code-editor>
|
</ha-code-editor>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user