aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/components/Rule.vue
diff options
context:
space:
mode:
authorLouis <6653109+artonge@users.noreply.github.com>2021-07-22 16:07:43 +0200
committerGitHub <noreply@github.com>2021-07-22 16:07:43 +0200
commit4301267373ed6bb215a0f193ffacbc92f9781255 (patch)
treef0d20ac869fb88aa93f5c118118bd51041fbaba5 /apps/workflowengine/src/components/Rule.vue
parentf14b8aa34bfb9f7af7b23cfecc09e2fb8f604c1b (diff)
parent717636fd2815bdd49599af059965a8202b1582aa (diff)
downloadnextcloud-server-4301267373ed6bb215a0f193ffacbc92f9781255.tar.gz
nextcloud-server-4301267373ed6bb215a0f193ffacbc92f9781255.zip
Merge pull request #28115 from nextcloud/feat/npm7
Migrate to npm 7
Diffstat (limited to 'apps/workflowengine/src/components/Rule.vue')
-rw-r--r--apps/workflowengine/src/components/Rule.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/workflowengine/src/components/Rule.vue b/apps/workflowengine/src/components/Rule.vue
index c59c4568f19..6240b304968 100644
--- a/apps/workflowengine/src/components/Rule.vue
+++ b/apps/workflowengine/src/components/Rule.vue
@@ -19,7 +19,7 @@
type="button"
class="check--add"
value="Add a new filter"
- @click="rule.checks.push({class: null, operator: null, value: ''})">
+ @click="onAddFilter">
</p>
</div>
<div class="flow-icon icon-confirm" />
@@ -152,6 +152,7 @@ export default {
this.dirty = false
}
},
+
async removeCheck(check) {
const index = this.rule.checks.findIndex(item => item === check)
if (index > -1) {
@@ -159,6 +160,11 @@ export default {
}
this.$store.dispatch('updateRule', this.rule)
},
+
+ onAddFilter() {
+ // eslint-disable-next-line vue/no-mutating-props
+ this.rule.checks.push({ class: null, operator: null, value: '' })
+ },
},
}
</script>