Add link to integrations page if zha or zwave are loaded. (#6159)

This commit is contained in:
Bram Kragten 2020-06-16 22:58:05 +02:00 committed by GitHub
parent 9ffd25e3a0
commit a87570cf5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View File

@ -85,6 +85,36 @@ class HaConfigDashboard extends LitElement {
</ha-card>
`
)}
${isComponentLoaded(this.hass, "zha")
? html`
<div class="promo-advanced">
${this.hass.localize(
"ui.panel.config.integration_panel_move.missing_zha",
"integrations_page",
html`<a href="/config/integrations">
${this.hass.localize(
"ui.panel.config.integration_panel_move.link_integration_page"
)}
</a>`
)}
</div>
`
: ""}
${isComponentLoaded(this.hass, "zwave")
? html`
<div class="promo-advanced">
${this.hass.localize(
"ui.panel.config.integration_panel_move.missing_zwave",
"integrations_page",
html`<a href="/config/integrations">
${this.hass.localize(
"ui.panel.config.integration_panel_move.link_integration_page"
)}
</a>`
)}
</div>
`
: ""}
${!this.showAdvanced
? html`
<div class="promo-advanced">

View File

@ -520,6 +520,11 @@
"hint_enable": "Missing config options? Enable advanced mode on",
"link_profile_page": "your profile page"
},
"integration_panel_move": {
"missing_zha": "Missing the ZHA config panel? It was moved to the ZHA entry on the {integrations_page}.",
"missing_zwave": "Missing the Z-Wave config panel? It was moved to the Z-Wave entry on the {integrations_page}.",
"link_integration_page": "integrations page"
},
"common": {
"editor": {
"confirm_unsaved": "You have unsaved changes. Are you sure you want to leave?"