From 5d6bacb0bd985612e6f7e61d7e0f5ccfffda71ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 26 Oct 2021 12:11:27 +0200 Subject: [PATCH] Use ha-alert to warn about logs from custom integrations (#10396) --- src/panels/config/logs/dialog-system-log-detail.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/panels/config/logs/dialog-system-log-detail.ts b/src/panels/config/logs/dialog-system-log-detail.ts index 783d7e4627..b8abf3474d 100644 --- a/src/panels/config/logs/dialog-system-log-detail.ts +++ b/src/panels/config/logs/dialog-system-log-detail.ts @@ -1,9 +1,10 @@ -import { mdiClose, mdiContentCopy, mdiPackageVariant } from "@mdi/js"; +import { mdiClose, mdiContentCopy } from "@mdi/js"; import "@polymer/paper-tooltip/paper-tooltip"; import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit"; import { property, state } from "lit/decorators"; import { fireEvent } from "../../../common/dom/fire_event"; import { copyToClipboard } from "../../../common/util/copy-clipboard"; +import "../../../components/ha-alert"; import "../../../components/ha-dialog"; import "../../../components/ha-header-bar"; import "../../../components/ha-icon-button"; @@ -96,12 +97,11 @@ class DialogSystemLogDetail extends LitElement { > ${this.isCustomIntegration - ? html`
- + ? html` ${this.hass.localize( "ui.panel.config.logs.error_from_custom_integration" )} -
` + ` : ""}

@@ -215,9 +215,9 @@ class DialogSystemLogDetail extends LitElement { margin-bottom: 0; font-family: var(--code-font-family, monospace); } - .custom { - padding: 8px 16px; - background-color: var(--warning-color); + ha-alert { + display: block; + margin: -4px 0; } .contents { padding: 16px;