mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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(
|
||||
info.items[0]
|
||||
)}
|
||||
?disabled=${info.disabled}
|
||||
?entryDisabled=${info.disabled}
|
||||
.selectedConfigEntryId=${info.highlight}
|
||||
></ha-integration-card>
|
||||
`
|
||||
|
@ -490,7 +490,7 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
|
||||
([domain, items]) =>
|
||||
html`<ha-integration-card
|
||||
data-domain=${domain}
|
||||
disabled
|
||||
entryDisabled
|
||||
.hass=${this.hass}
|
||||
.domain=${domain}
|
||||
.items=${items}
|
||||
|
@ -90,7 +90,7 @@ export class HaIntegrationCard extends LitElement {
|
||||
|
||||
@property() public selectedConfigEntryId?: string;
|
||||
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
@property({ type: Boolean }) public entryDisabled = false;
|
||||
|
||||
@property({ type: Boolean }) public supportsDiagnostics = false;
|
||||
|
||||
@ -114,7 +114,7 @@ export class HaIntegrationCard extends LitElement {
|
||||
single: hasItem,
|
||||
group: !hasItem,
|
||||
hasMultiple: this.items.length > 1,
|
||||
disabled: this.disabled,
|
||||
disabled: this.entryDisabled,
|
||||
"state-not-loaded": hasItem && item!.state === "not_loaded",
|
||||
"state-failed-unload": hasItem && item!.state === "failed_unload",
|
||||
"state-setup": hasItem && item!.state === "setup_in_progress",
|
||||
@ -124,7 +124,7 @@ export class HaIntegrationCard extends LitElement {
|
||||
>
|
||||
<ha-integration-header
|
||||
.hass=${this.hass}
|
||||
.banner=${this.disabled
|
||||
.banner=${this.entryDisabled
|
||||
? this.hass.localize(
|
||||
"ui.panel.config.integrations.config_entry.disable.disabled"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user