mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
RTL fix for log buttons (#12474)
This commit is contained in:
parent
4cd8b76d7e
commit
3149ffbf19
@ -16,6 +16,7 @@ import "../../../components/ha-ansi-to-html";
|
|||||||
import "../../../components/ha-card";
|
import "../../../components/ha-card";
|
||||||
import "../../../components/ha-icon-button";
|
import "../../../components/ha-icon-button";
|
||||||
import "../../../components/ha-select";
|
import "../../../components/ha-select";
|
||||||
|
import { computeRTLDirection } from "../../../common/util/compute_rtl";
|
||||||
import { fetchErrorLog } from "../../../data/error_log";
|
import { fetchErrorLog } from "../../../data/error_log";
|
||||||
import { extractApiErrorMessage } from "../../../data/hassio/common";
|
import { extractApiErrorMessage } from "../../../data/hassio/common";
|
||||||
import { fetchHassioLogs } from "../../../data/hassio/supervisor";
|
import { fetchHassioLogs } from "../../../data/hassio/supervisor";
|
||||||
@ -62,7 +63,11 @@ class ErrorLogCard extends LitElement {
|
|||||||
: ""}
|
: ""}
|
||||||
${!this._logHTML
|
${!this._logHTML
|
||||||
? html`
|
? html`
|
||||||
<mwc-button raised @click=${this._refreshLogs}>
|
<mwc-button
|
||||||
|
raised
|
||||||
|
@click=${this._refreshLogs}
|
||||||
|
dir=${computeRTLDirection(this.hass)}
|
||||||
|
>
|
||||||
${this.hass.localize("ui.panel.config.logs.load_logs")}
|
${this.hass.localize("ui.panel.config.logs.load_logs")}
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
`
|
`
|
||||||
|
@ -18,6 +18,7 @@ import {
|
|||||||
import { HomeAssistant } from "../../../types";
|
import { HomeAssistant } from "../../../types";
|
||||||
import { showSystemLogDetailDialog } from "./show-dialog-system-log-detail";
|
import { showSystemLogDetailDialog } from "./show-dialog-system-log-detail";
|
||||||
import { formatSystemLogTime } from "./util";
|
import { formatSystemLogTime } from "./util";
|
||||||
|
import { computeRTLDirection } from "../../../common/util/compute_rtl";
|
||||||
|
|
||||||
@customElement("system-log-card")
|
@customElement("system-log-card")
|
||||||
export class SystemLogCard extends LitElement {
|
export class SystemLogCard extends LitElement {
|
||||||
@ -131,7 +132,7 @@ export class SystemLogCard extends LitElement {
|
|||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div class="card-actions">
|
<div class="card-actions" dir=${computeRTLDirection(this.hass)}>
|
||||||
<ha-call-service-button
|
<ha-call-service-button
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
domain="system_log"
|
domain="system_log"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user