diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-09-02 11:35:33 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-09-10 09:01:24 +0200 |
commit | 1742f97acf62df08d2527120200f6e70736f33ec (patch) | |
tree | 3efbdde4e2a167004a70f65910c8e72ad8f2b4aa /apps/workflowengine/src/components/Rule.vue | |
parent | 69ac169fd9ff3b798e6744a685d2292a1a8a565b (diff) | |
download | nextcloud-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.vue | 4 |
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', |