mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-15 07:25:54 +00:00
Improve default dashboard confirmation dialog (#29596)
This commit is contained in:
@@ -20,6 +20,7 @@ import type {
|
|||||||
RowClickedEvent,
|
RowClickedEvent,
|
||||||
SortingChangedEvent,
|
SortingChangedEvent,
|
||||||
} from "../../../../components/data-table/ha-data-table";
|
} from "../../../../components/data-table/ha-data-table";
|
||||||
|
import "../../../../components/ha-alert";
|
||||||
import "../../../../components/ha-button";
|
import "../../../../components/ha-button";
|
||||||
import "../../../../components/ha-dropdown";
|
import "../../../../components/ha-dropdown";
|
||||||
import "../../../../components/ha-dropdown-item";
|
import "../../../../components/ha-dropdown-item";
|
||||||
@@ -460,9 +461,13 @@ export class HaConfigLovelaceDashboards extends LitElement {
|
|||||||
title: this.hass.localize(
|
title: this.hass.localize(
|
||||||
"ui.panel.config.lovelace.dashboards.detail.set_default_confirm_title"
|
"ui.panel.config.lovelace.dashboards.detail.set_default_confirm_title"
|
||||||
),
|
),
|
||||||
text: this.hass.localize(
|
text: html`${this.hass.localize(
|
||||||
"ui.panel.config.lovelace.dashboards.detail.set_default_confirm_text"
|
"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"),
|
confirmText: this.hass.localize("ui.common.ok"),
|
||||||
dismissText: this.hass.localize("ui.common.cancel"),
|
dismissText: this.hass.localize("ui.common.cancel"),
|
||||||
destructive: false,
|
destructive: false,
|
||||||
|
|||||||
@@ -4272,7 +4272,8 @@
|
|||||||
"set_default": "Set as default",
|
"set_default": "Set as default",
|
||||||
"remove_default": "Remove as default",
|
"remove_default": "Remove as default",
|
||||||
"set_default_confirm_title": "Set as default dashboard?",
|
"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": {
|
"resources": {
|
||||||
|
|||||||
Reference in New Issue
Block a user