1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-02-14 23:18:21 +00:00

Improve default dashboard confirmation dialog (#29596)

This commit is contained in:
Paul Bottein
2026-02-12 12:58:34 +01:00
committed by GitHub
parent a354026780
commit e414bab746
2 changed files with 10 additions and 4 deletions

View File

@@ -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"
)}<br /><br /><ha-alert alert-type="info"
>${this.hass.localize(
"ui.panel.config.lovelace.dashboards.detail.set_default_confirm_note"
)}</ha-alert
>`,
confirmText: this.hass.localize("ui.common.ok"),
dismissText: this.hass.localize("ui.common.cancel"),
destructive: false,

View File

@@ -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": {