mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-21 11:22:25 +01:00
frontend: passing parent_path via socketio
This commit is contained in:
@@ -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 }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user