mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
parent
f1fabd09a6
commit
deeb0146c7
@ -145,9 +145,12 @@ export class HuiCardEditor extends LitElement {
|
|||||||
<mwc-button
|
<mwc-button
|
||||||
@click=${this.toggleMode}
|
@click=${this.toggleMode}
|
||||||
?disabled=${this._warning || this._error}
|
?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>
|
</mwc-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1368,6 +1368,8 @@
|
|||||||
"header": "Card Configuration",
|
"header": "Card Configuration",
|
||||||
"pick_card": "Pick the card you want to add.",
|
"pick_card": "Pick the card you want to add.",
|
||||||
"toggle_editor": "Toggle Editor",
|
"toggle_editor": "Toggle Editor",
|
||||||
|
"show_visual_editor": "Show Visual Editor",
|
||||||
|
"show_code_editor": "Show Code Editor",
|
||||||
"add": "Add Card",
|
"add": "Add Card",
|
||||||
"edit": "Edit",
|
"edit": "Edit",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user