mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Use integration_type as header for config entries (#16786)
This commit is contained in:
parent
47fdae764f
commit
93e31df106
@ -478,9 +478,13 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
|
|
||||||
<ha-card>
|
<ha-card>
|
||||||
<h1 class="card-header">
|
<h1 class="card-header">
|
||||||
${this.hass.localize(
|
${this._manifest?.integration_type
|
||||||
"ui.panel.config.integrations.integration_page.entries"
|
? this.hass.localize(
|
||||||
)}
|
`ui.panel.config.integrations.integration_page.entries_${this._manifest?.integration_type}`
|
||||||
|
)
|
||||||
|
: this.hass.localize(
|
||||||
|
`ui.panel.config.integrations.integration_page.entries`
|
||||||
|
)}
|
||||||
</h1>
|
</h1>
|
||||||
${normalEntries.length === 0
|
${normalEntries.length === 0
|
||||||
? html`<div class="card-content no-entries">
|
? html`<div class="card-content no-entries">
|
||||||
@ -494,9 +498,13 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
</mwc-list>
|
</mwc-list>
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
<ha-button @click=${this._addIntegration}>
|
<ha-button @click=${this._addIntegration}>
|
||||||
${this.hass.localize(
|
${this._manifest?.integration_type
|
||||||
"ui.panel.config.integrations.integration_page.add_entry"
|
? this.hass.localize(
|
||||||
)}
|
`ui.panel.config.integrations.integration_page.add_${this._manifest?.integration_type}`
|
||||||
|
)
|
||||||
|
: this.hass.localize(
|
||||||
|
`ui.panel.config.integrations.integration_page.add_entry`
|
||||||
|
)}
|
||||||
</ha-button>
|
</ha-button>
|
||||||
</div>
|
</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
|
@ -3251,9 +3251,19 @@
|
|||||||
},
|
},
|
||||||
"integration_page": {
|
"integration_page": {
|
||||||
"entries": "Integration entries",
|
"entries": "Integration entries",
|
||||||
|
"entries_device": "Devices",
|
||||||
|
"entries_hub": "Hubs",
|
||||||
|
"entries_service": "Services",
|
||||||
|
"entries_helper": "Helpers",
|
||||||
|
"entries_hardware": "Hardware",
|
||||||
"no_entries": "No entries",
|
"no_entries": "No entries",
|
||||||
"attention_entries": "Needs attention",
|
"attention_entries": "Needs attention",
|
||||||
"add_entry": "Add entry"
|
"add_entry": "Add entry",
|
||||||
|
"add_device": "Add device",
|
||||||
|
"add_hub": "Add hub",
|
||||||
|
"add_service": "Add service",
|
||||||
|
"add_helper": "Add helper",
|
||||||
|
"add_hardware": "Add hardware"
|
||||||
},
|
},
|
||||||
"config_entry": {
|
"config_entry": {
|
||||||
"application_credentials": {
|
"application_credentials": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user