iobroker.mywebui 1.37.46 → 1.37.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/io-package.json
CHANGED
package/package.json
CHANGED
|
@@ -486,9 +486,11 @@ export class IobrokerWebuiAppShell extends BaseCustomWebComponentConstructorAppe
|
|
|
486
486
|
designItem.setAttribute('bind-prop:hidden', JSON.stringify(bnd));
|
|
487
487
|
designItem.removeAttribute('bind-prop:disable');
|
|
488
488
|
}
|
|
489
|
+
designItem.setAttribute('data-visibility-action', action);
|
|
489
490
|
} else {
|
|
490
491
|
designItem.removeAttribute('bind-prop:hidden');
|
|
491
492
|
designItem.removeAttribute('bind-prop:disable');
|
|
493
|
+
designItem.removeAttribute('data-visibility-action');
|
|
492
494
|
}
|
|
493
495
|
designItem.removeAttribute('data-visibility-signal');
|
|
494
496
|
this._updateVisibilityPanel();
|
|
@@ -585,7 +587,10 @@ export class IobrokerWebuiAppShell extends BaseCustomWebComponentConstructorAppe
|
|
|
585
587
|
const enableCheck = document.createElement('input');
|
|
586
588
|
enableCheck.type = 'checkbox';
|
|
587
589
|
enableCheck.checked = dataConfig.enabled || false;
|
|
588
|
-
enableCheck.onchange = () =>
|
|
590
|
+
enableCheck.onchange = () => {
|
|
591
|
+
updateGroupConfig('enabled', enableCheck.checked);
|
|
592
|
+
if (enableCheck.checked) updateGroupConfig('action', actionSelect.value);
|
|
593
|
+
};
|
|
589
594
|
enableLabel.appendChild(enableCheck);
|
|
590
595
|
enableLabel.appendChild(document.createTextNode('Enable Group Visibility Control'));
|
|
591
596
|
enableDiv.appendChild(enableLabel);
|