mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Rename disabled attribute on integration card (#14268)
This commit is contained in:
parent
31ac274a51
commit
0aae285236
@ -283,7 +283,7 @@ export class DemoIntegrationCard extends LitElement {
|
|||||||
.deviceRegistryEntries=${createDeviceRegistryEntries(
|
.deviceRegistryEntries=${createDeviceRegistryEntries(
|
||||||
info.items[0]
|
info.items[0]
|
||||||
)}
|
)}
|
||||||
?disabled=${info.disabled}
|
?entryDisabled=${info.disabled}
|
||||||
.selectedConfigEntryId=${info.highlight}
|
.selectedConfigEntryId=${info.highlight}
|
||||||
></ha-integration-card>
|
></ha-integration-card>
|
||||||
`
|
`
|
||||||
|
@ -490,7 +490,7 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
|
|||||||
([domain, items]) =>
|
([domain, items]) =>
|
||||||
html`<ha-integration-card
|
html`<ha-integration-card
|
||||||
data-domain=${domain}
|
data-domain=${domain}
|
||||||
disabled
|
entryDisabled
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.domain=${domain}
|
.domain=${domain}
|
||||||
.items=${items}
|
.items=${items}
|
||||||
|
@ -90,7 +90,7 @@ export class HaIntegrationCard extends LitElement {
|
|||||||
|
|
||||||
@property() public selectedConfigEntryId?: string;
|
@property() public selectedConfigEntryId?: string;
|
||||||
|
|
||||||
@property({ type: Boolean }) public disabled = false;
|
@property({ type: Boolean }) public entryDisabled = false;
|
||||||
|
|
||||||
@property({ type: Boolean }) public supportsDiagnostics = false;
|
@property({ type: Boolean }) public supportsDiagnostics = false;
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ export class HaIntegrationCard extends LitElement {
|
|||||||
single: hasItem,
|
single: hasItem,
|
||||||
group: !hasItem,
|
group: !hasItem,
|
||||||
hasMultiple: this.items.length > 1,
|
hasMultiple: this.items.length > 1,
|
||||||
disabled: this.disabled,
|
disabled: this.entryDisabled,
|
||||||
"state-not-loaded": hasItem && item!.state === "not_loaded",
|
"state-not-loaded": hasItem && item!.state === "not_loaded",
|
||||||
"state-failed-unload": hasItem && item!.state === "failed_unload",
|
"state-failed-unload": hasItem && item!.state === "failed_unload",
|
||||||
"state-setup": hasItem && item!.state === "setup_in_progress",
|
"state-setup": hasItem && item!.state === "setup_in_progress",
|
||||||
@ -124,7 +124,7 @@ export class HaIntegrationCard extends LitElement {
|
|||||||
>
|
>
|
||||||
<ha-integration-header
|
<ha-integration-header
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.banner=${this.disabled
|
.banner=${this.entryDisabled
|
||||||
? this.hass.localize(
|
? this.hass.localize(
|
||||||
"ui.panel.config.integrations.config_entry.disable.disabled"
|
"ui.panel.config.integrations.config_entry.disable.disabled"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user