Canvas: Use node full labels when monitoring
Change-Id: I7b3bce3519c2a7b7780f43cf1c092fcca9e6ecd9
diff --git a/apps/canvas/front/src/lib/state.ts b/apps/canvas/front/src/lib/state.ts
index c86199f..b7413d9 100644
--- a/apps/canvas/front/src/lib/state.ts
+++ b/apps/canvas/front/src/lib/state.ts
@@ -226,6 +226,14 @@
return "Unknown Node";
}
+export function nodeLabelFull(n: AppNode): string {
+ if (n.type === "gateway-https") {
+ return `https://${n.data.subdomain}.${n.data.network}`;
+ } else {
+ return nodeLabel(n);
+ }
+}
+
export function nodeIsConnectable(n: AppNode, handle: string): boolean {
switch (n.type) {
case "network":