Compare commits

...
2 Commits
Author SHA1 Message Date
GeorgeSG c3fa2ce6b6 1.1.1 2020-11-22 16:38:06 +02:00
GeorgeSG f4128145fb Fix name and seconds being linked together in Visual Editor 2020-11-22 16:37:48 +02:00
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "time-picker-card",
"version": "1.1.0",
"version": "1.1.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "time-picker-card",
"version": "1.1.0",
"version": "1.1.1",
"author": "Georgi Gardev <georgi@gardev.com>",
"description": "Lovelace time-picker-card",
"keywords": [
+4 -2
View File
@@ -188,12 +188,14 @@ export class TimePickerCardEditor extends LitElement implements LovelaceCardEdit
}
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);
}
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);
}