mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56: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}">
|
<mwc-button @click="${this._close}">
|
||||||
${this.hass!.localize("ui.common.cancel")}
|
${this.hass!.localize("ui.common.cancel")}
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
|
${this._cardConfig !== undefined
|
||||||
|
? html`
|
||||||
<mwc-button
|
<mwc-button
|
||||||
?disabled="${!this._canSave || this._saving}"
|
?disabled="${!this._canSave || this._saving}"
|
||||||
@click="${this._save}"
|
@click="${this._save}"
|
||||||
@ -127,6 +129,8 @@ export class HuiDialogEditCard extends LitElement {
|
|||||||
`
|
`
|
||||||
: this.hass!.localize("ui.common.save")}
|
: this.hass!.localize("ui.common.save")}
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
|
`
|
||||||
|
: ``}
|
||||||
</div>
|
</div>
|
||||||
</ha-paper-dialog>
|
</ha-paper-dialog>
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user