From 504055f33168a157d030900865899ebeedd68b2c Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Mon, 12 Oct 2020 22:09:34 +0200 Subject: [PATCH] Add documentation link to "customize" dialog (#7321) --- .../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 2f2b3eb37f..d008085d2b 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 2ad523125d..4df81153df 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) {