@iobroker/adapter-react-v5 8.0.6 → 8.0.7
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/README.md
CHANGED
|
@@ -691,9 +691,10 @@ You can find the migration instructions:
|
|
|
691
691
|
-->
|
|
692
692
|
|
|
693
693
|
## Changelog
|
|
694
|
-
### 8.0.
|
|
694
|
+
### 8.0.7 (2025-10-28)
|
|
695
695
|
|
|
696
696
|
- (@GermanBluefox) Added `updateSmartNameEx` function to Utils
|
|
697
|
+
- (@GermanBluefox) Corrected expert mode toggle in object browser
|
|
697
698
|
|
|
698
699
|
### 8.0.5 (2025-10-25)
|
|
699
700
|
|
|
@@ -448,6 +448,7 @@ export declare class ObjectBrowserClass extends Component<ObjectBrowserProps, Ob
|
|
|
448
448
|
private contextMenu;
|
|
449
449
|
private recordStates;
|
|
450
450
|
private styles;
|
|
451
|
+
private expertMode;
|
|
451
452
|
private customColumnDialog;
|
|
452
453
|
/** Namespaces which are allowed to be edited by non-expert users */
|
|
453
454
|
static NON_EXPERT_NAMESPACES: string[];
|
|
@@ -2083,6 +2083,7 @@ export class ObjectBrowserClass extends Component {
|
|
|
2083
2083
|
contextMenu = null;
|
|
2084
2084
|
recordStates = [];
|
|
2085
2085
|
styles = {};
|
|
2086
|
+
expertMode = false;
|
|
2086
2087
|
customColumnDialog = null;
|
|
2087
2088
|
/** Namespaces which are allowed to be edited by non-expert users */
|
|
2088
2089
|
static NON_EXPERT_NAMESPACES = ['0_userdata.0.', 'alias.0.'];
|
|
@@ -2090,6 +2091,7 @@ export class ObjectBrowserClass extends Component {
|
|
|
2090
2091
|
super(props);
|
|
2091
2092
|
const lastSelectedItemStr = this.localStorage.getItem(`${props.dialogName || 'App'}.objectSelected`) || '';
|
|
2092
2093
|
this.selectFirst = '';
|
|
2094
|
+
this.expertMode = !!this.props.expertMode;
|
|
2093
2095
|
if (lastSelectedItemStr.startsWith('[')) {
|
|
2094
2096
|
try {
|
|
2095
2097
|
const lastSelectedItems = JSON.parse(lastSelectedItemStr);
|
|
@@ -6276,6 +6278,10 @@ export class ObjectBrowserClass extends Component {
|
|
|
6276
6278
|
this.unsubscribeTimer = null;
|
|
6277
6279
|
this.checkUnsubscribes();
|
|
6278
6280
|
}, 200);
|
|
6281
|
+
if (this.expertMode !== !!this.state.filter.expertMode) {
|
|
6282
|
+
this.expertMode = !!this.state.filter.expertMode;
|
|
6283
|
+
this.doFilter(true);
|
|
6284
|
+
}
|
|
6279
6285
|
if (!this.state.loaded) {
|
|
6280
6286
|
return React.createElement(CircularProgress, { key: `${this.props.dialogName}_c` });
|
|
6281
6287
|
}
|