From e3ed0cf436232623628fd19ff15cff0a24d4815e Mon Sep 17 00:00:00 2001 From: Phi Dong Date: Sat, 19 Oct 2019 05:18:59 -0700 Subject: [PATCH] Hide save on card configuration if no card is picked (#4062) --- .../card-editor/hui-dialog-edit-card.ts | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) mode change 100644 => 100755 src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts diff --git a/src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts b/src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts old mode 100644 new mode 100755 index 68fdda58ae..ab23793448 --- a/src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts +++ b/src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts @@ -117,16 +117,20 @@ export class HuiDialogEditCard extends LitElement { ${this.hass!.localize("ui.common.cancel")} - - ${this._saving - ? html` - - ` - : this.hass!.localize("ui.common.save")} - + ${this._cardConfig !== undefined + ? html` + + ${this._saving + ? html` + + ` + : this.hass!.localize("ui.common.save")} + + ` + : ``} `;