mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-06 13:30:41 +02:00
using new runMethod function
This commit is contained in:
parent
15cf0bd414
commit
2ce4c9ce9b
@ -57,7 +57,8 @@ export const AsyncMethodComponent = React.memo((props: AsyncMethodProps) => {
|
|||||||
method_name = `start_${name}`;
|
method_name = `start_${name}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
runMethod(method_name, parentPath, {});
|
const accessPath = [parentPath, method_name].filter((element) => element).join('.');
|
||||||
|
runMethod(accessPath);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -32,7 +32,7 @@ export const MethodComponent = React.memo((props: MethodProps) => {
|
|||||||
|
|
||||||
const execute = async (event: React.FormEvent) => {
|
const execute = async (event: React.FormEvent) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
runMethod(name, parentPath, {});
|
runMethod(fullAccessPath);
|
||||||
|
|
||||||
triggerNotification();
|
triggerNotification();
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user