From 7ee3693819733eb6e05bf6eeb1bb1b55aa5b6a3e Mon Sep 17 00:00:00 2001 From: Susana Hahn Date: Fri, 27 Oct 2023 18:42:57 -0600 Subject: [PATCH] Fixed rebase --- .../src/app/callback-helper.service.ts | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/angular_frontend/src/app/callback-helper.service.ts b/angular_frontend/src/app/callback-helper.service.ts index d8ba510a..0048eb9d 100644 --- a/angular_frontend/src/app/callback-helper.service.ts +++ b/angular_frontend/src/app/callback-helper.service.ts @@ -171,6 +171,7 @@ function handleUpdate(when:WhenDto, event: Event | null) { } else { console.log("COULD NOT FIND ELEMENT FOR when:" + id + "::" + key + "::" + value) + console.log(when) } @@ -335,25 +336,25 @@ export class CallBackHelperService { return 0; }); - const updates = allEvents.filter((w) => w.interactionType == "update"|| w.interactionType == "context") + const updates = allEvents.filter((w) => w.interactionType == "update") const context = allEvents.filter((w) => w.interactionType == "context") const call = allEvents.filter((w) => w.interactionType == "call" || w.interactionType == "callback") - const context_menu = allEvents.filter((w) => w.interactionType == "show_context_menu" ) + // const context_menu = allEvents.filter((w) => w.interactionType == "show_context_menu" ) - context_menu.forEach((when:WhenDto) => { - try{ - if (when.interactionType == "update") { - handleUpdate(when, event) - } else if (when.interactionType == "context") { - handleContext(when, event) - } else if (when.interactionType == "call" || when.interactionType == "callback") { - handleCallback(when, event) - } - }catch(error:any){ - let frontendService = LocatorService.injector.get(DrawFrontendService) - frontendService.postMessage(error.message,"warning") - } - }) + // context_menu.forEach((when:WhenDto) => { + // try{ + // if (when.interactionType == "update") { + // handleUpdate(when, event) + // } else if (when.interactionType == "context") { + // handleContext(when, event) + // } else if (when.interactionType == "call" || when.interactionType == "callback") { + // handleCallback(when, event) + // } + // }catch(error:any){ + // let frontendService = LocatorService.injector.get(DrawFrontendService) + // frontendService.postMessage(error.message,"warning") + // } + // }) updates.forEach((when:WhenDto) => { try{