aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/components/Check.vue
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-10-10 11:01:49 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-10-29 18:03:53 +0100
commitb15c4a3a2ea0e561ed6e892a77bbb91d9335958b (patch)
tree5809c5af46eb1614f6b51dac891d329159a9c49a /apps/workflowengine/src/components/Check.vue
parent71470463c66ead616f8e481a7513f4858cb75ae3 (diff)
downloadnextcloud-server-b15c4a3a2ea0e561ed6e892a77bbb91d9335958b.tar.gz
nextcloud-server-b15c4a3a2ea0e561ed6e892a77bbb91d9335958b.zip
Properly validate individual checks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/src/components/Check.vue')
-rw-r--r--apps/workflowengine/src/components/Check.vue3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/workflowengine/src/components/Check.vue b/apps/workflowengine/src/components/Check.vue
index 5f125772ea5..2f0bc11d18e 100644
--- a/apps/workflowengine/src/components/Check.vue
+++ b/apps/workflowengine/src/components/Check.vue
@@ -112,7 +112,6 @@ export default {
if (this.currentOption && this.currentOption.validate) {
this.valid = !!this.currentOption.validate(this.check);
}
- this.$store.dispatch('setValid', { rule: this.rule, valid: this.rule.valid && this.valid })
return this.valid
},
updateCheck() {
@@ -123,7 +122,7 @@ export default {
this.check.operator = this.currentOperator.operator
if (!this.validate()) {
- return
+ this.check.invalid = !this.valid
}
this.$emit('update', this.check)
}