mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +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-tabs-subpage";
|
||||
import { HomeAssistant, Route } from "../../../types";
|
||||
import { documentationUrl } from "../../../util/documentation-url";
|
||||
import "../ha-config-section";
|
||||
import { configSections } from "../ha-panel-config";
|
||||
import {
|
||||
@ -74,7 +75,9 @@ class HaConfigPerson extends LitElement {
|
||||
>${hass.localize("ui.panel.config.person.caption")}</span
|
||||
>
|
||||
<span slot="introduction">
|
||||
${hass.localize("ui.panel.config.person.introduction")}
|
||||
<p>
|
||||
${hass.localize("ui.panel.config.person.introduction")}
|
||||
</p>
|
||||
${this._configItems.length > 0
|
||||
? html`
|
||||
<p>
|
||||
@ -84,7 +87,22 @@ class HaConfigPerson extends LitElement {
|
||||
</p>
|
||||
`
|
||||
: ""}
|
||||
|
||||
<a
|
||||
href=${documentationUrl(
|
||||
this.hass,
|
||||
"/integrations/person/"
|
||||
)}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.person.learn_more"
|
||||
)}
|
||||
</a>
|
||||
</span>
|
||||
|
||||
|
||||
<ha-card class="storage">
|
||||
${this._storageItems.map((entry) => {
|
||||
return html`
|
||||
|
@ -1692,6 +1692,7 @@
|
||||
"description": "Manage the people that Home Assistant tracks",
|
||||
"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.",
|
||||
"learn_more": "Learn more about people",
|
||||
"no_persons_created_yet": "Looks like you have not created any people yet.",
|
||||
"create_person": "Create Person",
|
||||
"add_person": "Add Person",
|
||||
|
Loading…
x
Reference in New Issue
Block a user