AppManager: Recursively monitor dodo resources
Change-Id: I23f3014e416f5b68f8909dbfbcba27db66eaee3f
diff --git a/apps/canvas/front/src/components/actions.tsx b/apps/canvas/front/src/components/actions.tsx
index dc3503f..58598ca 100644
--- a/apps/canvas/front/src/components/actions.tsx
+++ b/apps/canvas/front/src/components/actions.tsx
@@ -5,6 +5,14 @@
import { useNodes, useReactFlow } from "@xyflow/react";
import { useToast } from "@/hooks/use-toast";
+function toNodeType(t: string): string {
+ if (t === "ingress") {
+ return "gateway-https";
+ } else {
+ return t;
+ }
+}
+
export function Actions() {
const { toast } = useToast();
const store = useStateStore();
@@ -35,7 +43,7 @@
if (n.type === "network") {
continue;
}
- const d = data.find((d) => n.type === d.type && nodeLabel(n) === d.name);
+ const d = data.find((d) => n.type === toNodeType(d.type) && nodeLabel(n) === d.name);
if (d !== undefined) {
store.updateNodeData(n.id, {
state: d?.status,