mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Move add config entry button to card (#16783)
This commit is contained in:
parent
d5f46a69b0
commit
45d260f0ce
@ -15,7 +15,6 @@ import {
|
|||||||
mdiOpenInNew,
|
mdiOpenInNew,
|
||||||
mdiPackageVariant,
|
mdiPackageVariant,
|
||||||
mdiPlayCircleOutline,
|
mdiPlayCircleOutline,
|
||||||
mdiPlus,
|
|
||||||
mdiProgressHelper,
|
mdiProgressHelper,
|
||||||
mdiReload,
|
mdiReload,
|
||||||
mdiReloadAlert,
|
mdiReloadAlert,
|
||||||
@ -237,7 +236,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
>
|
>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="column small">
|
<div class="column small">
|
||||||
<ha-card>
|
<ha-card class="overview">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="logo-container">
|
<div class="logo-container">
|
||||||
<img
|
<img
|
||||||
@ -440,20 +439,16 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
<mwc-list>
|
<mwc-list>
|
||||||
${normalEntries.map((item) => this._renderConfigEntry(item))}
|
${normalEntries.map((item) => this._renderConfigEntry(item))}
|
||||||
</mwc-list>
|
</mwc-list>
|
||||||
|
<div class="card-actions">
|
||||||
|
<ha-button @click=${this._addIntegration}>
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.integrations.integration_page.add_entry"
|
||||||
|
)}
|
||||||
|
</ha-button>
|
||||||
|
</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ha-fab
|
|
||||||
slot="fab"
|
|
||||||
@click=${this._addIntegration}
|
|
||||||
.label=${this.hass.localize(
|
|
||||||
"ui.panel.config.integrations.integration_page.add",
|
|
||||||
{ integration: domainToName(this.hass.localize, this.domain) }
|
|
||||||
)}
|
|
||||||
extended
|
|
||||||
>
|
|
||||||
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
|
||||||
</ha-fab>
|
|
||||||
</hass-subpage>
|
</hass-subpage>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@ -1182,7 +1177,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.card-actions {
|
.overview .card-actions {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
|
@ -3253,7 +3253,7 @@
|
|||||||
"entries": "Integration entries",
|
"entries": "Integration entries",
|
||||||
"no_entries": "No entries",
|
"no_entries": "No entries",
|
||||||
"attention_entries": "Needs attention",
|
"attention_entries": "Needs attention",
|
||||||
"add": "Add {integration}"
|
"add_entry": "Add entry"
|
||||||
},
|
},
|
||||||
"config_entry": {
|
"config_entry": {
|
||||||
"application_credentials": {
|
"application_credentials": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user