Canvas: Disable all inputs during non-edit mode
Change-Id: Ifca28e7cb78cb38175d5463311ff3d5006d412f8
diff --git a/apps/canvas/front/src/components/node-details.tsx b/apps/canvas/front/src/components/node-details.tsx
index 503d5ee..2d9cd58 100644
--- a/apps/canvas/front/src/components/node-details.tsx
+++ b/apps/canvas/front/src/components/node-details.tsx
@@ -7,7 +7,11 @@
import { NodeGithubDetails } from "./node-github";
import { NodeGatewayTCPDetails } from "./node-gateway-tcp";
-export function NodeDetails(props: AppNode) {
+type NodeDetailsProps = AppNode & {
+ disabled?: boolean;
+};
+
+export function NodeDetails(props: NodeDetailsProps) {
return (
<div className="px-1 flex flex-col gap-2">
<NodeDetailsImpl {...props} />
@@ -15,7 +19,7 @@
);
}
-function NodeDetailsImpl(props: AppNode) {
+function NodeDetailsImpl(props: NodeDetailsProps) {
switch (props.type) {
case "app":
return <NodeAppDetails {...props} />;