mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
frontend: passing parent_path via socketio
This commit is contained in:
parent
7248192e83
commit
6c89059792
@ -33,6 +33,7 @@ export const AsyncMethodComponent = React.memo((props: AsyncMethodProps) => {
|
|||||||
|
|
||||||
socket.emit('frontend_update', {
|
socket.emit('frontend_update', {
|
||||||
name: method_name,
|
name: method_name,
|
||||||
|
parent_path: parent_path,
|
||||||
value: { args: args }
|
value: { args: args }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -23,6 +23,7 @@ export const EnumComponent = React.memo((props: EnumComponentProps) => {
|
|||||||
const handleValueChange = (newValue: string) => {
|
const handleValueChange = (newValue: string) => {
|
||||||
socket.emit('frontend_update', {
|
socket.emit('frontend_update', {
|
||||||
name: name,
|
name: name,
|
||||||
|
parent_path: parent_path,
|
||||||
value: { value: newValue }
|
value: { value: newValue }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -31,6 +31,7 @@ export const MethodComponent = React.memo((props: MethodProps) => {
|
|||||||
'frontend_update',
|
'frontend_update',
|
||||||
{
|
{
|
||||||
name: name,
|
name: name,
|
||||||
|
parent_path: parent_path,
|
||||||
value: { args: args }
|
value: { args: args }
|
||||||
},
|
},
|
||||||
(ack) => {
|
(ack) => {
|
||||||
|
@ -33,6 +33,7 @@ export const SliderComponent = React.memo((props: SliderComponentProps) => {
|
|||||||
) => {
|
) => {
|
||||||
socket.emit('frontend_update', {
|
socket.emit('frontend_update', {
|
||||||
name: name,
|
name: name,
|
||||||
|
parent_path: parent_path,
|
||||||
value: { value: newNumber, min: min, max: max, step_size: stepSize }
|
value: { value: newNumber, min: min, max: max, step_size: stepSize }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user