mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 04:06:35 +00:00
Mark card editor dirty on prefilled create (#6545)
This commit is contained in:
parent
72f9d6a8d3
commit
bbb1468439
@ -80,6 +80,9 @@ export class HuiDialogEditCard extends LitElement implements HassDialog {
|
|||||||
if (this._cardConfig && !Object.isFrozen(this._cardConfig)) {
|
if (this._cardConfig && !Object.isFrozen(this._cardConfig)) {
|
||||||
this._cardConfig = deepFreeze(this._cardConfig);
|
this._cardConfig = deepFreeze(this._cardConfig);
|
||||||
}
|
}
|
||||||
|
if (params.cardConfig) {
|
||||||
|
this._dirty = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public closeDialog(): boolean {
|
public closeDialog(): boolean {
|
||||||
|
@ -138,6 +138,7 @@ class HUIRoot extends LitElement {
|
|||||||
<a
|
<a
|
||||||
href="https://www.home-assistant.io/lovelace/"
|
href="https://www.home-assistant.io/lovelace/"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
|
class="menu-link"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<mwc-icon-button
|
<mwc-icon-button
|
||||||
@ -267,6 +268,7 @@ class HUIRoot extends LitElement {
|
|||||||
<a
|
<a
|
||||||
href="https://www.home-assistant.io/lovelace/"
|
href="https://www.home-assistant.io/lovelace/"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
|
class="menu-link"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<mwc-list-item
|
<mwc-list-item
|
||||||
@ -762,6 +764,9 @@ class HUIRoot extends LitElement {
|
|||||||
.hide-tab {
|
.hide-tab {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.menu-link {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user