From bd2e8fb418953fd8b7723c29706da634f00b5b62 Mon Sep 17 00:00:00 2001 From: htmltiger <1429451+htmltiger@users.noreply.github.com> Date: Tue, 11 Jan 2022 19:21:14 +0000 Subject: [PATCH] Update config-editor-card.js --- config-editor-card.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/config-editor-card.js b/config-editor-card.js index 3ff7240..67d32b0 100644 --- a/config-editor-card.js +++ b/config-editor-card.js @@ -1,4 +1,4 @@ -console.info("Config Editor 1.6"); +console.info("Config Editor 1.7"); const LitElement = window.LitElement || Object.getPrototypeOf(customElements.get("hui-masonry-view") ); const html = LitElement.prototype.html; @@ -36,17 +36,19 @@ render() { return html` +
-
-
${this.alertLine}
-
- - -
- #${this.infoLine} +
+
${this.alertLine}
+
+ + + +
+ #${this.infoLine}
`; @@ -54,7 +56,7 @@ render() { updateText(e) { this.code = e.detail.value; - localStorage.setItem('config_editorText', this.code); + if(this.openedFile){localStorage.setItem('config_editorText', this.code);} } Unsave(){