aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/components/Check.vue
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-12-23 12:22:22 +0100
committerJulius Härtl <jus@bitgrid.net>2019-12-27 08:45:39 +0100
commit8ec66d1e954d84900f3f1bdd5cd958aef5abd3eb (patch)
tree087604e79821b7e8357be30874baed8c1fca84f3 /apps/workflowengine/src/components/Check.vue
parente7ad0448261a6706053749ea7eaf4c34ddef17ef (diff)
downloadnextcloud-server-8ec66d1e954d84900f3f1bdd5cd958aef5abd3eb.tar.gz
nextcloud-server-8ec66d1e954d84900f3f1bdd5cd958aef5abd3eb.zip
Autofocus new filter and display proper error messages
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.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/workflowengine/src/components/Check.vue b/apps/workflowengine/src/components/Check.vue
index 96d686341fe..e447fbeb4bd 100644
--- a/apps/workflowengine/src/components/Check.vue
+++ b/apps/workflowengine/src/components/Check.vue
@@ -72,7 +72,7 @@ export default {
currentOption: null,
currentOperator: null,
options: [],
- valid: true,
+ valid: false,
}
},
computed: {
@@ -107,6 +107,11 @@ export default {
this.options = Object.values(this.checks)
this.currentOption = this.checks[this.check.class]
this.currentOperator = this.operators.find((operator) => operator.operator === this.check.operator)
+
+ if (this.check.class === null) {
+ this.$nextTick(() => this.$refs.checkSelector.$el.focus())
+ }
+ this.check.invalid = !this.validate()
},
methods: {
showDelete() {