Skip to content

Commit

Permalink
Renamed Toggle Editor button #3617 (#3968)
Browse files Browse the repository at this point in the history
  • Loading branch information
shmooey authored and bramkragten committed Oct 9, 2019
1 parent f1fabd0 commit deeb014
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/panels/lovelace/editor/card-editor/hui-card-editor.ts
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions src/translations/en.json
Expand Up @@ -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",
Expand Down

0 comments on commit deeb014

Please sign in to comment.