Stop appending 'Configuration' to the end of every config page in navigation commands. Fix spinner regression (#7753)

This commit is contained in:
Donnie 2020-11-21 08:31:40 -08:00 committed by GitHub
parent e7e192ffe3
commit 17d227b142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -205,6 +205,7 @@ export class QuickBar extends LitElement {
<mwc-list-item <mwc-list-item
.twoline=${Boolean(item.altText)} .twoline=${Boolean(item.altText)}
.item=${item} .item=${item}
hasMeta
index=${ifDefined(index)} index=${ifDefined(index)}
graphic="icon" graphic="icon"
class=${this._commandMode ? "command-item" : ""} class=${this._commandMode ? "command-item" : ""}
@ -427,9 +428,9 @@ export class QuickBar extends LitElement {
`ui.dialogs.quick-bar.commands.navigation.${page.component}` `ui.dialogs.quick-bar.commands.navigation.${page.component}`
); );
if (page.translationKey) { if (page.translationKey && shortCaption) {
const caption = this.hass.localize( const caption = this.hass.localize(
"ui.dialogs.quick-bar.commands.navigation.navigate_to_config", "ui.dialogs.quick-bar.commands.navigation.navigate_to",
"panel", "panel",
shortCaption shortCaption
); );

View File

@ -288,7 +288,6 @@
"overflow_menu": "Overflow menu", "overflow_menu": "Overflow menu",
"successfully_saved": "Successfully saved", "successfully_saved": "Successfully saved",
"successfully_deleted": "Successfully deleted", "successfully_deleted": "Successfully deleted",
"error_required": "Required", "error_required": "Required",
"copied": "Copied" "copied": "Copied"
}, },
@ -507,7 +506,6 @@
}, },
"navigation": { "navigation": {
"navigate_to": "Navigate to {panel}", "navigate_to": "Navigate to {panel}",
"navigate_to_config": "Navigate to {panel} configuration",
"logs": "[%key:ui::panel::config::logs::caption%]", "logs": "[%key:ui::panel::config::logs::caption%]",
"automation": "[%key:ui::panel::config::automation::caption%]", "automation": "[%key:ui::panel::config::automation::caption%]",
"script": "[%key:ui::panel::config::script::caption%]", "script": "[%key:ui::panel::config::script::caption%]",
@ -525,6 +523,7 @@
"users": "[%key:ui::panel::config::users::caption%]", "users": "[%key:ui::panel::config::users::caption%]",
"info": "[%key:ui::panel::config::info::caption%]", "info": "[%key:ui::panel::config::info::caption%]",
"customize": "[%key:ui::panel::config::customize::caption%]", "customize": "[%key:ui::panel::config::customize::caption%]",
"blueprint": "[%key:ui::panel::config::blueprint::caption%]",
"server_control": "[%key:ui::panel::config::server_control::caption%]" "server_control": "[%key:ui::panel::config::server_control::caption%]"
} }
}, },
@ -1118,8 +1117,9 @@
"dialog_new": { "dialog_new": {
"header": "Create a new automation", "header": "Create a new automation",
"how": "How do you want to create your new automation?", "how": "How do you want to create your new automation?",
"blueprint": {
"blueprint": { "use_blueprint": "Use a blueprint" }, "use_blueprint": "Use a blueprint"
},
"thingtalk": { "thingtalk": {
"header": "Describe the automation you want to create", "header": "Describe the automation you want to create",
"intro": "And we will try to create it for you. For example: Turn the lights off when I leave.", "intro": "And we will try to create it for you. For example: Turn the lights off when I leave.",