From 8868c155636da9095003da6ebc5a546a58564150 Mon Sep 17 00:00:00 2001 From: Cole Blanchard <33158416+blanchco@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:21:35 -0500 Subject: [PATCH] remove warnings created from scenario templates (#5720) Co-authored-by: Cole Blanchard Co-authored-by: Yohann Paris --- .../blank-canvas/tera-blank-canvas-template.vue | 3 ++- .../decision-making/tera-decision-making-template.vue | 4 +++- .../tera-sensitivity-analysis-template.vue | 4 +++- .../tera-situational-awareness-template.vue | 4 +++- .../workflow/scenario-templates/tera-scenario-template.vue | 4 +++- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/packages/client/hmi-client/src/components/workflow/scenario-templates/blank-canvas/tera-blank-canvas-template.vue b/packages/client/hmi-client/src/components/workflow/scenario-templates/blank-canvas/tera-blank-canvas-template.vue index c6cf6b2fe7..0e0bcee770 100644 --- a/packages/client/hmi-client/src/components/workflow/scenario-templates/blank-canvas/tera-blank-canvas-template.vue +++ b/packages/client/hmi-client/src/components/workflow/scenario-templates/blank-canvas/tera-blank-canvas-template.vue @@ -3,7 +3,7 @@ ref="blankTemplate" :header="header" :scenario-instance="scenario" - @save-workflow="$emit('save-workflow')" + @save-workflow="emit('save-workflow')" /> Blank canvas template @@ -20,4 +20,5 @@ const header: ScenarioHeader = Object.freeze({ defineProps<{ scenario: BlankCanvasScenario; }>(); +const emit = defineEmits(['save-workflow']); diff --git a/packages/client/hmi-client/src/components/workflow/scenario-templates/decision-making/tera-decision-making-template.vue b/packages/client/hmi-client/src/components/workflow/scenario-templates/decision-making/tera-decision-making-template.vue index 1520bb1766..cfaa88240b 100644 --- a/packages/client/hmi-client/src/components/workflow/scenario-templates/decision-making/tera-decision-making-template.vue +++ b/packages/client/hmi-client/src/components/workflow/scenario-templates/decision-making/tera-decision-making-template.vue @@ -1,5 +1,5 @@