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