From b6f59d3c984aae2e7fafce4f2d31da76700cba0a Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 1 Apr 2021 11:28:56 -0700 Subject: [PATCH] Fix the automation picker icons (#8790) --- .../config/automation/ha-automation-picker.ts | 62 +++++++++++-------- 1 file changed, 36 insertions(+), 26 deletions(-) diff --git a/src/panels/config/automation/ha-automation-picker.ts b/src/panels/config/automation/ha-automation-picker.ts index b12675425b..f6d8834fa6 100644 --- a/src/panels/config/automation/ha-automation-picker.ts +++ b/src/panels/config/automation/ha-automation-picker.ts @@ -1,5 +1,12 @@ import "@material/mwc-icon-button"; -import { mdiHelpCircle, mdiPlus } from "@mdi/js"; +import { + mdiHelpCircle, + mdiHistory, + mdiInformationOutline, + mdiPencil, + mdiPencilOff, + mdiPlus, +} from "@mdi/js"; import "@polymer/paper-tooltip/paper-tooltip"; import { CSSResult, @@ -148,14 +155,15 @@ class HaAutomationPicker extends LitElement { title: "", type: "icon-button", template: (_info, automation) => html` - + > + + `, }; columns.trace = { @@ -169,13 +177,14 @@ class HaAutomationPicker extends LitElement { : undefined )} > - + )} + .disabled=${!automation.attributes.id} + > + + ${!automation.attributes.id ? html` @@ -199,25 +208,26 @@ class HaAutomationPicker extends LitElement { : undefined )} > - + > - ${!automation.attributes.id - ? html` - - ${this.hass.localize( - "ui.panel.config.automation.picker.only_editable" - )} - - ` - : ""} + ${ + !automation.attributes.id + ? html` + + ${this.hass.localize( + "ui.panel.config.automation.picker.only_editable" + )} + + ` + : "" + } `, }; return columns;