From 8ee9655bd5643ae577870a3367137d91bb4389ef Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 5 Sep 2022 17:44:10 +0200 Subject: [PATCH] On larger screens, move traces button out of the overflow menu (#13597) --- .../config/automation/ha-automation-editor.ts | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/panels/config/automation/ha-automation-editor.ts b/src/panels/config/automation/ha-automation-editor.ts index 5abf51d1c6..d1af4e2947 100644 --- a/src/panels/config/automation/ha-automation-editor.ts +++ b/src/panels/config/automation/ha-automation-editor.ts @@ -1,3 +1,4 @@ +import "@material/mwc-button"; import "@material/mwc-list/mwc-list-item"; import { mdiCheck, @@ -125,6 +126,21 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) { "ui.panel.config.automation.editor.default_name" )} > + ${this._config?.id && !this.narrow + ? html` + + + ${this.hass.localize( + "ui.panel.config.automation.editor.show_trace" + )} + + + ` + : ""} - ${stateObj && this._config + ${stateObj && this._config && this.narrow ? html` ${this.hass.localize( @@ -659,6 +675,9 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) { flex-direction: column; padding-bottom: 0; } + .trace-link { + text-decoration: none; + } manual-automation-editor, blueprint-automation-editor { margin: 0 auto;