mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-16 08:59:26 +01:00
using new runMethod function
This commit is contained in:
@@ -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();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user