summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/components/Rule.vue
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-09-02 11:35:33 +0200
committerJulius Härtl <jus@bitgrid.net>2019-09-10 09:01:24 +0200
commit1742f97acf62df08d2527120200f6e70736f33ec (patch)
tree3efbdde4e2a167004a70f65910c8e72ad8f2b4aa /apps/workflowengine/src/components/Rule.vue
parent69ac169fd9ff3b798e6744a685d2292a1a8a565b (diff)
downloadnextcloud-server-1742f97acf62df08d2527120200f6e70736f33ec.tar.gz
nextcloud-server-1742f97acf62df08d2527120200f6e70736f33ec.zip
Allow placeholder and validation without custom vue component
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/src/components/Rule.vue')
-rw-r--r--apps/workflowengine/src/components/Rule.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/workflowengine/src/components/Rule.vue b/apps/workflowengine/src/components/Rule.vue
index f1551d985ca..88129525eb3 100644
--- a/apps/workflowengine/src/components/Rule.vue
+++ b/apps/workflowengine/src/components/Rule.vue
@@ -8,7 +8,7 @@
</p>
<p v-for="check in rule.checks">
<span>{{ t('workflowengine', 'and') }}</span>
- <Check :check="check" @update="updateRule" @remove="removeCheck(check)" />
+ <Check :check="check" :rule="rule" @update="updateRule" @remove="removeCheck(check)" />
</p>
<p>
<span />
@@ -74,7 +74,7 @@ export default {
return this.$store.getters.getOperationForRule(this.rule)
},
ruleStatus() {
- if (this.error) {
+ if (this.error || !this.rule.valid) {
return {
title: t('workflowengine', 'The configuration is invalid'),
class: 'icon-close-white invalid',