From 92c0d70af9cc69f3a28f0a9886d3062eb075ba72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sun, 14 Feb 2021 12:00:21 +0100 Subject: [PATCH] Make clear cache message clickable (#384) --- src/components/hacs-section-navigation.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/hacs-section-navigation.ts b/src/components/hacs-section-navigation.ts index fc6079e3..7474bbfd 100644 --- a/src/components/hacs-section-navigation.ts +++ b/src/components/hacs-section-navigation.ts @@ -24,6 +24,7 @@ class HacsSectionNavigation extends LitElement { @property({ type: Boolean, attribute: "no-next" }) public noNext: boolean = false; protected render(): TemplateResult { + console.log(this.pages); return html` ${this.header ? html`
${this.header}
` : ""} @@ -33,7 +34,9 @@ class HacsSectionNavigation extends LitElement { { - this._openDialog(page); + page.name === "Unexpected frontend version" + ? this._clearCache() + : this._openDialog(page); }} >