mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46:35 +00:00
Hide save on card configuration if no card is picked (#4062)
This commit is contained in:
parent
d05dc2e4dc
commit
e3ed0cf436
4
src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts
Normal file → Executable file
4
src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts
Normal file → Executable file
@ -117,6 +117,8 @@ export class HuiDialogEditCard extends LitElement {
|
||||
<mwc-button @click="${this._close}">
|
||||
${this.hass!.localize("ui.common.cancel")}
|
||||
</mwc-button>
|
||||
${this._cardConfig !== undefined
|
||||
? html`
|
||||
<mwc-button
|
||||
?disabled="${!this._canSave || this._saving}"
|
||||
@click="${this._save}"
|
||||
@ -127,6 +129,8 @@ export class HuiDialogEditCard extends LitElement {
|
||||
`
|
||||
: this.hass!.localize("ui.common.save")}
|
||||
</mwc-button>
|
||||
`
|
||||
: ``}
|
||||
</div>
|
||||
</ha-paper-dialog>
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user