mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Update delete dashboard dialog to be more descriptive (#10051)
Co-authored-by: Bram Kragten <mail@bramkragten.nl> Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
This commit is contained in:
parent
49494c572b
commit
ea51186767
@ -279,9 +279,14 @@ export class HaConfigLovelaceDashboards extends LitElement {
|
||||
removeDashboard: async () => {
|
||||
if (
|
||||
!(await showConfirmationDialog(this, {
|
||||
text: this.hass!.localize(
|
||||
"ui.panel.config.lovelace.dashboards.confirm_delete"
|
||||
title: this.hass!.localize(
|
||||
"ui.panel.config.lovelace.dashboards.confirm_delete_title",
|
||||
{ dashboard_title: dashboard!.title }
|
||||
),
|
||||
text: this.hass!.localize(
|
||||
"ui.panel.config.lovelace.dashboards.confirm_delete_text"
|
||||
),
|
||||
confirmText: this.hass!.localize("ui.common.delete"),
|
||||
}))
|
||||
) {
|
||||
return false;
|
||||
|
@ -1254,7 +1254,8 @@
|
||||
"open": "Open",
|
||||
"add_dashboard": "Add dashboard"
|
||||
},
|
||||
"confirm_delete": "Are you sure you want to delete this dashboard?",
|
||||
"confirm_delete_title": "Delete {dashboard_title}?",
|
||||
"confirm_delete_text": "Your dashboard will be permanently deleted.",
|
||||
"cant_edit_yaml": "Dashboards defined in YAML cannot be edited from the UI. Change them in configuration.yaml.",
|
||||
"cant_edit_default": "The standard Lovelace dashboard cannot be edited from the UI. You can hide it by setting another dashboard as default.",
|
||||
"detail": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user