From 05d7e85aa388d4e79529c2a9d0f65530b2a08f5b Mon Sep 17 00:00:00 2001 From: Zack Barett Date: Fri, 21 Jan 2022 15:28:05 -0600 Subject: [PATCH] Remove Show button on Update. Make row clickable (#11385) --- .../config/dashboard/ha-config-updates.ts | 64 +++++++++---------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/src/panels/config/dashboard/ha-config-updates.ts b/src/panels/config/dashboard/ha-config-updates.ts index 264bd253c6..5d94cccee2 100644 --- a/src/panels/config/dashboard/ha-config-updates.ts +++ b/src/panels/config/dashboard/ha-config-updates.ts @@ -10,6 +10,7 @@ import "../../../components/ha-svg-icon"; import { SupervisorAvailableUpdates } from "../../../data/supervisor/supervisor"; import { buttonLinkStyle } from "../../../resources/styles"; import { HomeAssistant } from "../../../types"; +import "../../../components/ha-icon-next"; export const SUPERVISOR_UPDATE_NAMES = { core: "Home Assistant Core", @@ -46,34 +47,33 @@ class HaConfigUpdates extends LitElement { ${updates.map( (update) => html` - - - ${update.update_type === "addon" - ? update.icon - ? html`` - : html`` - : html``} - - - ${update.update_type === "addon" - ? update.name - : SUPERVISOR_UPDATE_NAMES[update.update_type!]} -
- ${this.hass.localize( - "ui.panel.config.updates.version_available", - { - version_available: update.version_latest, - } - )} -
-
- - - - -
+ + + + ${update.update_type === "addon" + ? update.icon + ? html`` + : html`` + : html``} + + + ${update.update_type === "addon" + ? update.name + : SUPERVISOR_UPDATE_NAMES[update.update_type!]} +
+ ${this.hass.localize( + "ui.panel.config.updates.version_available", + { + version_available: update.version_latest, + } + )} +
+
+ ${!this.narrow ? html`` : ""} +
+
` )} ${!this._showAll && this.supervisorUpdates.length >= 4 @@ -120,10 +120,10 @@ class HaConfigUpdates extends LitElement { ha-logo-svg { color: var(--secondary-text-color); } - button.show-all { - color: var(--primary-color); - text-decoration: none; - margin: 16px; + ha-icon-next { + color: var(--secondary-text-color); + height: 24px; + width: 24px; } `, ];