mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 08:40:03 +02:00
updates DeviceConnection component
This commit is contained in:
parent
7ef82e61e5
commit
f1384b25a1
@ -9,7 +9,7 @@ import { MethodComponent } from './MethodComponent';
|
|||||||
type DeviceConnectionProps = {
|
type DeviceConnectionProps = {
|
||||||
name: string;
|
name: string;
|
||||||
props: DataServiceJSON;
|
props: DataServiceJSON;
|
||||||
parentPath?: string;
|
parentPath: string;
|
||||||
isInstantUpdate: boolean;
|
isInstantUpdate: boolean;
|
||||||
addNotification: (message: string, levelname?: LevelName) => void;
|
addNotification: (message: string, levelname?: LevelName) => void;
|
||||||
};
|
};
|
||||||
@ -18,14 +18,13 @@ export const DeviceConnectionComponent = React.memo(
|
|||||||
({
|
({
|
||||||
name,
|
name,
|
||||||
props,
|
props,
|
||||||
parentPath = '',
|
parentPath,
|
||||||
isInstantUpdate,
|
isInstantUpdate,
|
||||||
addNotification
|
addNotification
|
||||||
}: DeviceConnectionProps) => {
|
}: DeviceConnectionProps) => {
|
||||||
const { available, connect, ...updatedProps } = props;
|
const { available, connect, ...updatedProps } = props;
|
||||||
const availableVal = available.value;
|
const availableVal = available.value;
|
||||||
|
|
||||||
console.log(connect);
|
|
||||||
let fullAccessPath = parentPath;
|
let fullAccessPath = parentPath;
|
||||||
if (name) {
|
if (name) {
|
||||||
fullAccessPath = [parentPath, name].filter((element) => element).join('.');
|
fullAccessPath = [parentPath, name].filter((element) => element).join('.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user