Renamed Toggle Editor button #3617 (#3968)

This commit is contained in:
Hayley McIldoon 2019-10-09 17:03:46 -04:00 committed by Bram Kragten
parent f1fabd09a6
commit deeb0146c7
2 changed files with 7 additions and 2 deletions

View File

@ -145,9 +145,12 @@ export class HuiCardEditor extends LitElement {
<mwc-button
@click=${this.toggleMode}
?disabled=${this._warning || this._error}
?unelevated=${this._GUImode === false}
>
<ha-icon icon="mdi:code-braces"></ha-icon>
${this.hass!.localize(
this._GUImode
? "ui.panel.lovelace.editor.edit_card.show_code_editor"
: "ui.panel.lovelace.editor.edit_card.show_visual_editor"
)}
</mwc-button>
</div>
</div>

View File

@ -1368,6 +1368,8 @@
"header": "Card Configuration",
"pick_card": "Pick the card you want to add.",
"toggle_editor": "Toggle Editor",
"show_visual_editor": "Show Visual Editor",
"show_code_editor": "Show Code Editor",
"add": "Add Card",
"edit": "Edit",
"delete": "Delete",