From 1428502706978263721e7972c97e3b2da199e695 Mon Sep 17 00:00:00 2001 From: marcsello Date: Sat, 5 Dec 2020 01:12:58 +0100 Subject: [PATCH] Added data edited event --- .../components/FlowchartNode.vue | 1 + .../components/SimpleFlowchart.vue | 58 ++++++++++--------- src/views/Dashboard.vue | 32 +--------- 3 files changed, 35 insertions(+), 56 deletions(-) diff --git a/src/simple-flowchart/components/FlowchartNode.vue b/src/simple-flowchart/components/FlowchartNode.vue index 26b9bd8..88f0833 100644 --- a/src/simple-flowchart/components/FlowchartNode.vue +++ b/src/simple-flowchart/components/FlowchartNode.vue @@ -202,6 +202,7 @@ export default { saveEdit() { this.show.editor = false; this.$emit('update:data', this.editorData); + this.$emit("dataUpdated", this.data); } } } diff --git a/src/simple-flowchart/components/SimpleFlowchart.vue b/src/simple-flowchart/components/SimpleFlowchart.vue index 1b5475b..f6c7283 100644 --- a/src/simple-flowchart/components/SimpleFlowchart.vue +++ b/src/simple-flowchart/components/SimpleFlowchart.vue @@ -1,24 +1,27 @@