mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 20:26:39 +00:00
Fix card display in view panel (#20972)
This commit is contained in:
parent
d9a9038cec
commit
c08d9a9166
@ -18,6 +18,8 @@ export class HuiCard extends ReactiveElement {
|
|||||||
|
|
||||||
@property({ attribute: false }) public lovelace!: Lovelace;
|
@property({ attribute: false }) public lovelace!: Lovelace;
|
||||||
|
|
||||||
|
@property({ attribute: false }) public isPanel = false;
|
||||||
|
|
||||||
@state() public _config?: LovelaceCardConfig;
|
@state() public _config?: LovelaceCardConfig;
|
||||||
|
|
||||||
private _element?: LovelaceCard;
|
private _element?: LovelaceCard;
|
||||||
@ -93,6 +95,9 @@ export class HuiCard extends ReactiveElement {
|
|||||||
if (changedProperties.has("hass") || changedProperties.has("lovelace")) {
|
if (changedProperties.has("hass") || changedProperties.has("lovelace")) {
|
||||||
this._updateElement();
|
this._updateElement();
|
||||||
}
|
}
|
||||||
|
if (changedProperties.has("isPanel")) {
|
||||||
|
this._element.isPanel = this.isPanel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user