Mark card editor dirty on prefilled create (#6545)

This commit is contained in:
Bram Kragten 2020-08-06 15:18:08 +02:00 committed by GitHub
parent 72f9d6a8d3
commit bbb1468439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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 {

View File

@ -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;
}
`, `,
]; ];
} }