mirror of
https://github.com/GeorgeSG/lovelace-time-picker-card.git
synced 2026-09-07 10:48:44 +00:00
Fix name and seconds being linked together in Visual Editor
This commit is contained in:
+4
-2
@@ -188,12 +188,14 @@ export class TimePickerCardEditor extends LitElement implements LovelaceCardEdit
|
|||||||
}
|
}
|
||||||
|
|
||||||
private onHideNameChange({ target: { checked } }): void {
|
private onHideNameChange({ target: { checked } }): void {
|
||||||
const newConfig = { ...this.config, hide: { name: !checked } };
|
const hide = { ...this.config.hide, name: !checked };
|
||||||
|
const newConfig = { ...this.config, hide };
|
||||||
this.dispatch(newConfig);
|
this.dispatch(newConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
private onHideSecondsChange({ target: { checked } }): void {
|
private onHideSecondsChange({ target: { checked } }): void {
|
||||||
const newConfig = { ...this.config, hide: { seconds: !checked } };
|
const hide = { ...this.config.hide, seconds: !checked };
|
||||||
|
const newConfig = { ...this.config, hide };
|
||||||
this.dispatch(newConfig);
|
this.dispatch(newConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user