mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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>
|
||||
<h1 class="card-header">
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.integrations.integration_page.entries"
|
||||
)}
|
||||
${this._manifest?.integration_type
|
||||
? 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>
|
||||
${normalEntries.length === 0
|
||||
? html`<div class="card-content no-entries">
|
||||
@ -494,9 +498,13 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
||||
</mwc-list>
|
||||
<div class="card-actions">
|
||||
<ha-button @click=${this._addIntegration}>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.integrations.integration_page.add_entry"
|
||||
)}
|
||||
${this._manifest?.integration_type
|
||||
? 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>
|
||||
</div>
|
||||
</ha-card>
|
||||
|
@ -3251,9 +3251,19 @@
|
||||
},
|
||||
"integration_page": {
|
||||
"entries": "Integration entries",
|
||||
"entries_device": "Devices",
|
||||
"entries_hub": "Hubs",
|
||||
"entries_service": "Services",
|
||||
"entries_helper": "Helpers",
|
||||
"entries_hardware": "Hardware",
|
||||
"no_entries": "No entries",
|
||||
"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": {
|
||||
"application_credentials": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user