diff --git a/client/web/workflow/src/components/Configurator/Error.vue b/client/web/workflow/src/components/Configurator/Error.vue
index 59da2d252e..8cb969de99 100644
--- a/client/web/workflow/src/components/Configurator/Error.vue
+++ b/client/web/workflow/src/components/Configurator/Error.vue
@@ -21,15 +21,38 @@
class="mb-0"
>
+
+
+
+
@@ -38,12 +61,20 @@ import base from './base'
import ExpressionEditor from '../ExpressionEditor'
export default {
-
components: {
ExpressionEditor,
},
+
extends: base,
+ data () {
+ return {
+ expressionEditor: {
+ currentExpression: undefined,
+ },
+ }
+ },
+
created () {
let args = [{
target: 'message',
@@ -70,6 +101,23 @@ export default {
value: `Stop workflow with error: ${value}`,
force: !this.item.node.value,
})
+ this.$root.$emit('change-detected')
+ },
+
+ openInEditor () {
+ this.expressionEditor.currentExpression = this.item.config.arguments[0].expr
+ },
+
+ saveExpression () {
+ const { currentExpression } = this.expressionEditor
+ this.$set(this.item.config.arguments[0], 'expr', currentExpression)
+ this.$root.$emit('change-detected')
+
+ this.resetExpression()
+ },
+
+ resetExpression () {
+ this.expressionEditor.currentExpression = undefined
},
},
}