From 72fd0577c74658e508ef1d382b0cf411f323bd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sun, 6 Feb 2022 10:31:56 +0100 Subject: [PATCH] Fix missing lovelace_instruction note (#557) --- src/components/dialogs/hacs-download-dialog.ts | 2 +- src/localize/languages/en.json | 3 ++- src/panels/hacs-entry-panel.ts | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/dialogs/hacs-download-dialog.ts b/src/components/dialogs/hacs-download-dialog.ts index c6b301e9..dcef9b9c 100644 --- a/src/components/dialogs/hacs-download-dialog.ts +++ b/src/components/dialogs/hacs-download-dialog.ts @@ -158,7 +158,7 @@ export class HacsDonwloadDialog extends HacsDialogBase { })} ${this._repository.category === "plugin" && this.hacs.status.lovelace_mode !== "storage" ? html` -

${this.hacs.localize(`repository.lovelace_instruction`)}

+

${this.hacs.localize(`dialog_download.lovelace_instruction`)}

                 url: ${generateLovelaceURL({ repository: this._repository, skipTag: true })}
                 type: module
diff --git a/src/localize/languages/en.json b/src/localize/languages/en.json
index 80215230..695876ee 100644
--- a/src/localize/languages/en.json
+++ b/src/localize/languages/en.json
@@ -92,7 +92,8 @@
     "select_version": "Select version",
     "show_beta": "Show beta versions",
     "restart": "Remember that you need to restart Home Assistant before changes to integrations (custom_components) are applied.",
-    "note_downloaded": "When downloaded this will be located in {location}"
+    "note_downloaded": "When downloaded this will be located in {location}",
+    "lovelace_instruction": "After the download completes, since you are not using Lovelace in storage mode you need to manually add the resource with these settings:"
   },
   "dialog_info": {
     "version_installed": "Version downloaded",
diff --git a/src/panels/hacs-entry-panel.ts b/src/panels/hacs-entry-panel.ts
index 0cb97e1a..1d97f5df 100644
--- a/src/panels/hacs-entry-panel.ts
+++ b/src/panels/hacs-entry-panel.ts
@@ -324,6 +324,9 @@ export class HacsEntryPanel extends LitElement {
           max-width: 40px;
           border-radius: 50%;
         }
+        paper-icon-item {
+          cursor: pointer;
+        }
       `,
     ];
   }