From cfd4445a45eb47b02836c89ecd84330be8f612e3 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Mon, 12 Oct 2020 20:14:06 +0200 Subject: [PATCH] Add documentation link to "customize" dialog --- .../config/customize/ha-config-customize.js | 16 ++++++++++++++++ src/panels/config/customize/ha-form-customize.js | 16 ++++++++-------- src/translations/en.json | 1 + 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/panels/config/customize/ha-config-customize.js b/src/panels/config/customize/ha-config-customize.js index 2f2b3eb37fc3..d008085d2bac 100644 --- a/src/panels/config/customize/ha-config-customize.js +++ b/src/panels/config/customize/ha-config-customize.js @@ -11,6 +11,7 @@ import "../ha-config-section"; import "../ha-entity-config"; import { configSections } from "../ha-panel-config"; import "./ha-form-customize"; +import { documentationUrl } from "../../../util/documentation-url"; /* * @appliesMixin LocalizeMixin @@ -34,6 +35,14 @@ class HaConfigCustomize extends LocalizeMixin(PolymerElement) { [[localize('ui.panel.config.customize.picker.introduction')]] +
+ + [[localize("ui.panel.config.customize.picker.documentation")]] +
hass.states[key]) .sort(sortStatesByName); } + + _computeDocumentationUrl(hass) { + return documentationUrl( + hass, + "/docs/configuration/customizing-devices/#customization-using-the-ui" + ); + } } customElements.define("ha-config-customize", HaConfigCustomize); diff --git a/src/panels/config/customize/ha-form-customize.js b/src/panels/config/customize/ha-form-customize.js index 2ad523125d5b..4df81153df1d 100644 --- a/src/panels/config/customize/ha-form-customize.js +++ b/src/panels/config/customize/ha-form-customize.js @@ -40,35 +40,35 @@ class HaFormCustomize extends LocalizeMixin(PolymerElement) {