Unify default dashboard name (#10254)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
MartinT 2021-10-16 17:30:48 +02:00 committed by GitHub
parent 816d5ee594
commit ec47e320d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -43,7 +43,11 @@ class HaPickDashboardRow extends LitElement {
@iron-select=${this._dashboardChanged}
attr-for-selected="url-path"
>
<paper-item url-path="lovelace">default</paper-item>
<paper-item url-path="lovelace"
>${this.hass.localize(
"ui.panel.profile.dashboard.default_dashboard_label"
)}</paper-item
>
${this._dashboards.map((dashboard) => {
if (!this.hass.user!.is_admin && dashboard.require_admin) {
return "";

View File

@ -1288,7 +1288,7 @@
"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.",
"cant_edit_default": "The default Lovelace dashboard, Overview, cannot be edited from the UI. You can hide it by setting another dashboard as default.",
"detail": {
"edit_dashboard": "Edit dashboard",
"new_dashboard": "Add new dashboard",
@ -3592,7 +3592,8 @@
"dashboard": {
"header": "Dashboard",
"description": "Pick a default dashboard for this device.",
"dropdown_label": "Dashboard"
"dropdown_label": "Dashboard",
"default_dashboard_label": "Overview (default)"
},
"change_password": {
"header": "Change Password",