mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +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', {
|
||||
name: method_name,
|
||||
parent_path: parent_path,
|
||||
value: { args: args }
|
||||
});
|
||||
};
|
||||
|
@ -23,6 +23,7 @@ export const EnumComponent = React.memo((props: EnumComponentProps) => {
|
||||
const handleValueChange = (newValue: string) => {
|
||||
socket.emit('frontend_update', {
|
||||
name: name,
|
||||
parent_path: parent_path,
|
||||
value: { value: newValue }
|
||||
});
|
||||
};
|
||||
|
@ -31,6 +31,7 @@ export const MethodComponent = React.memo((props: MethodProps) => {
|
||||
'frontend_update',
|
||||
{
|
||||
name: name,
|
||||
parent_path: parent_path,
|
||||
value: { args: args }
|
||||
},
|
||||
(ack) => {
|
||||
|
@ -33,6 +33,7 @@ export const SliderComponent = React.memo((props: SliderComponentProps) => {
|
||||
) => {
|
||||
socket.emit('frontend_update', {
|
||||
name: name,
|
||||
parent_path: parent_path,
|
||||
value: { value: newNumber, min: min, max: max, step_size: stepSize }
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user