diff --git a/packages/adapter-react-v5/README.md b/packages/adapter-react-v5/README.md index 99941567f..5653288df 100644 --- a/packages/adapter-react-v5/README.md +++ b/packages/adapter-react-v5/README.md @@ -13,7 +13,7 @@ If you want to create the configuration page with ReactJS: - Change `name` from `src` to `ADAPTERNAME-admin` (Of course replace `ADAPTERNAME` with yours) - Add to devDependencies: ```json - "@iobroker/adapter-react-v5": "^7.4.2", + "@iobroker/adapter-react-v5": "^7.4.3", ``` Versions can be higher. So your `src/package.json` should look like: @@ -24,7 +24,7 @@ If you want to create the configuration page with ReactJS: "version": "0.1.0", "private": true, "dependencies": { - "@iobroker/adapter-react-v5": "^7.4.2", + "@iobroker/adapter-react-v5": "^7.4.3", "@iobroker/build-tools": "^1.0.0", "babel-eslint": "^10.1.0", "react-scripts": "^5.0.1" diff --git a/packages/admin/src-admin/package.json b/packages/admin/src-admin/package.json index dbe018222..adbfaf300 100644 --- a/packages/admin/src-admin/package.json +++ b/packages/admin/src-admin/package.json @@ -103,5 +103,5 @@ } ] ], - "version": "7.4.2" -} + "version": "7.4.3" +} \ No newline at end of file diff --git a/packages/admin/src-admin/src/components/Adapters/AdapterGeneric.tsx b/packages/admin/src-admin/src/components/Adapters/AdapterGeneric.tsx index bed72cd3a..eedee40bc 100644 --- a/packages/admin/src-admin/src/components/Adapters/AdapterGeneric.tsx +++ b/packages/admin/src-admin/src/components/Adapters/AdapterGeneric.tsx @@ -134,6 +134,12 @@ export const genericStyles: Record = { currentVersionText: (theme: IobTheme) => ({ color: theme.palette.mode === 'dark' ? '#a3ffa3' : '#009800', fontWeight: 'bold', + marginLeft: '4px', + }), + repoVersionText: (theme: IobTheme) => ({ + color: theme.palette.mode === 'dark' ? '#a3fcff' : '#005498', + fontWeight: 'bold', + marginLeft: '4px', }), rating: {}, containerVersion: {}, @@ -719,6 +725,8 @@ export default abstract class AdapterGeneric< return null; } + const repoVersion = this.props.context.repository[this.props.adapterName]?.version; + return ( {`(${this.props.context.t('current')})`} - ) : ( - '' - )} + ) : null} + {repoVersion === version ? ( + {`(${this.props.context.t('repository')})`} + ) : null}