mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +00:00
Add link to documentation for persons (#7205)
Co-authored-by: Zack Barett <zackbarett@hey.com>
This commit is contained in:
parent
26b476ab3c
commit
c220228566
@ -30,6 +30,7 @@ import {
|
|||||||
import "../../../layouts/hass-loading-screen";
|
import "../../../layouts/hass-loading-screen";
|
||||||
import "../../../layouts/hass-tabs-subpage";
|
import "../../../layouts/hass-tabs-subpage";
|
||||||
import { HomeAssistant, Route } from "../../../types";
|
import { HomeAssistant, Route } from "../../../types";
|
||||||
|
import { documentationUrl } from "../../../util/documentation-url";
|
||||||
import "../ha-config-section";
|
import "../ha-config-section";
|
||||||
import { configSections } from "../ha-panel-config";
|
import { configSections } from "../ha-panel-config";
|
||||||
import {
|
import {
|
||||||
@ -74,7 +75,9 @@ class HaConfigPerson extends LitElement {
|
|||||||
>${hass.localize("ui.panel.config.person.caption")}</span
|
>${hass.localize("ui.panel.config.person.caption")}</span
|
||||||
>
|
>
|
||||||
<span slot="introduction">
|
<span slot="introduction">
|
||||||
${hass.localize("ui.panel.config.person.introduction")}
|
<p>
|
||||||
|
${hass.localize("ui.panel.config.person.introduction")}
|
||||||
|
</p>
|
||||||
${this._configItems.length > 0
|
${this._configItems.length > 0
|
||||||
? html`
|
? html`
|
||||||
<p>
|
<p>
|
||||||
@ -84,7 +87,22 @@ class HaConfigPerson extends LitElement {
|
|||||||
</p>
|
</p>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
|
|
||||||
|
<a
|
||||||
|
href=${documentationUrl(
|
||||||
|
this.hass,
|
||||||
|
"/integrations/person/"
|
||||||
|
)}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.person.learn_more"
|
||||||
|
)}
|
||||||
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
||||||
<ha-card class="storage">
|
<ha-card class="storage">
|
||||||
${this._storageItems.map((entry) => {
|
${this._storageItems.map((entry) => {
|
||||||
return html`
|
return html`
|
||||||
|
@ -1692,6 +1692,7 @@
|
|||||||
"description": "Manage the people that Home Assistant tracks",
|
"description": "Manage the people that Home Assistant tracks",
|
||||||
"introduction": "Here you can define each person of interest in Home Assistant.",
|
"introduction": "Here you can define each person of interest in Home Assistant.",
|
||||||
"note_about_persons_configured_in_yaml": "Note: people configured via configuration.yaml cannot be edited via the UI.",
|
"note_about_persons_configured_in_yaml": "Note: people configured via configuration.yaml cannot be edited via the UI.",
|
||||||
|
"learn_more": "Learn more about people",
|
||||||
"no_persons_created_yet": "Looks like you have not created any people yet.",
|
"no_persons_created_yet": "Looks like you have not created any people yet.",
|
||||||
"create_person": "Create Person",
|
"create_person": "Create Person",
|
||||||
"add_person": "Add Person",
|
"add_person": "Add Person",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user