From e414bab746b30a9649b92a4f1189cb539ff9168c Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 12 Feb 2026 12:58:34 +0100 Subject: [PATCH] Improve default dashboard confirmation dialog (#29596) --- .../dashboards/ha-config-lovelace-dashboards.ts | 11 ++++++++--- src/translations/en.json | 3 ++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts b/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts index 5562df620a..7fda1bbe74 100644 --- a/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts +++ b/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts @@ -20,6 +20,7 @@ import type { RowClickedEvent, SortingChangedEvent, } from "../../../../components/data-table/ha-data-table"; +import "../../../../components/ha-alert"; import "../../../../components/ha-button"; import "../../../../components/ha-dropdown"; import "../../../../components/ha-dropdown-item"; @@ -460,9 +461,13 @@ export class HaConfigLovelaceDashboards extends LitElement { title: this.hass.localize( "ui.panel.config.lovelace.dashboards.detail.set_default_confirm_title" ), - text: this.hass.localize( - "ui.panel.config.lovelace.dashboards.detail.set_default_confirm_text" - ), + text: html`${this.hass.localize( + "ui.panel.config.lovelace.dashboards.detail.set_default_confirm_text" + )}

${this.hass.localize( + "ui.panel.config.lovelace.dashboards.detail.set_default_confirm_note" + )}`, confirmText: this.hass.localize("ui.common.ok"), dismissText: this.hass.localize("ui.common.cancel"), destructive: false, diff --git a/src/translations/en.json b/src/translations/en.json index 7251eaeee3..959a439a68 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -4272,7 +4272,8 @@ "set_default": "Set as default", "remove_default": "Remove as default", "set_default_confirm_title": "Set as default dashboard?", - "set_default_confirm_text": "This dashboard will be shown to all users when opening Home Assistant. Each user can change this in their profile." + "set_default_confirm_text": "This dashboard will be shown to all users when opening Home Assistant.", + "set_default_confirm_note": "Users who have chosen a specific dashboard in their profile will not be affected. They must set it back to \"Auto (use system settings)\" to use this dashboard." } }, "resources": {