@iobroker/adapter-react-v5 7.7.0 → 7.7.2
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.
|
@@ -2333,7 +2333,7 @@ export class ObjectBrowserClass extends Component {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
// If the this.state.selected[0] filtered out, disable the filter
|
|
2335
2335
|
const item = this.findItem(this.state.selected[0]);
|
|
2336
|
-
if (item?.data && !item.data.visible) {
|
|
2336
|
+
if (item?.data && !item.data.visible && !item.data.hasVisibleChildren) {
|
|
2337
2337
|
// If the selected ID is not visible, reset filter
|
|
2338
2338
|
this.clearFilter();
|
|
2339
2339
|
}
|
|
@@ -2440,7 +2440,7 @@ export class ObjectBrowserClass extends Component {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
// remove all subscribes
|
|
2442
2442
|
this.subscribes.forEach(pattern => {
|
|
2443
|
-
console.log(`- unsubscribe ${pattern}`);
|
|
2443
|
+
// console.log(`- unsubscribe ${pattern}`);
|
|
2444
2444
|
this.props.socket.unsubscribeState(pattern, this.onStateChange);
|
|
2445
2445
|
});
|
|
2446
2446
|
this.subscribes = [];
|
|
@@ -2492,7 +2492,7 @@ export class ObjectBrowserClass extends Component {
|
|
|
2492
2492
|
refreshComponent() {
|
|
2493
2493
|
// remove all subscribes
|
|
2494
2494
|
this.subscribes.forEach(pattern => {
|
|
2495
|
-
console.log(`- unsubscribe ${pattern}`);
|
|
2495
|
+
// console.log(`- unsubscribe ${pattern}`);
|
|
2496
2496
|
this.props.socket.unsubscribeState(pattern, this.onStateChange);
|
|
2497
2497
|
});
|
|
2498
2498
|
this.subscribes = [];
|
|
@@ -2726,7 +2726,7 @@ export class ObjectBrowserClass extends Component {
|
|
|
2726
2726
|
* Called when a state changes.
|
|
2727
2727
|
*/
|
|
2728
2728
|
onStateChange = (id, state) => {
|
|
2729
|
-
console.log(`> stateChange ${id}`);
|
|
2729
|
+
// console.log(`> stateChange ${id}`);
|
|
2730
2730
|
if (this.states[id]) {
|
|
2731
2731
|
const item = this.findItem(id);
|
|
2732
2732
|
if (item?.data.state) {
|
|
@@ -2918,7 +2918,7 @@ export class ObjectBrowserClass extends Component {
|
|
|
2918
2918
|
* @returns Returns an object containing the new state (if any) and whether the object was filtered.
|
|
2919
2919
|
*/
|
|
2920
2920
|
processOnObjectChangeElement(id, obj) {
|
|
2921
|
-
console.log(`> objectChange ${id}`);
|
|
2921
|
+
// console.log(`> objectChange ${id}`);
|
|
2922
2922
|
const type = obj?.type;
|
|
2923
2923
|
// If the object is filtered out, we don't need to update the React state
|
|
2924
2924
|
if (obj &&
|
|
@@ -2952,7 +2952,7 @@ export class ObjectBrowserClass extends Component {
|
|
|
2952
2952
|
subscribe(id) {
|
|
2953
2953
|
if (!this.subscribes.includes(id)) {
|
|
2954
2954
|
this.subscribes.push(id);
|
|
2955
|
-
console.log(`+ subscribe ${id}`);
|
|
2955
|
+
// console.log(`+ subscribe ${id}`);
|
|
2956
2956
|
if (!this.pausedSubscribes) {
|
|
2957
2957
|
this.props.socket
|
|
2958
2958
|
.subscribeState(id, this.onStateChange)
|
|
@@ -2967,7 +2967,7 @@ export class ObjectBrowserClass extends Component {
|
|
|
2967
2967
|
if (this.states[id]) {
|
|
2968
2968
|
delete this.states[id];
|
|
2969
2969
|
}
|
|
2970
|
-
console.log(`- unsubscribe ${id}`);
|
|
2970
|
+
// console.log(`- unsubscribe ${id}`);
|
|
2971
2971
|
this.props.socket.unsubscribeState(id, this.onStateChange);
|
|
2972
2972
|
if (this.pausedSubscribes) {
|
|
2973
2973
|
console.warn('Unsubscribe during pause?');
|