From 7ca81f360f42341b2941798374160d362507ba26 Mon Sep 17 00:00:00 2001
From: "John Molakvoæ (skjnldsv)"
Date: Thu, 22 Jul 2021 13:21:25 +0200
Subject: Fix eslint and update bundles
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: John Molakvoæ (skjnldsv)
---
apps/workflowengine/src/components/Rule.vue | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
(limited to 'apps/workflowengine/src/components/Rule.vue')
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">
@@ -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: '' })
+ },
},
}
--
cgit v1.2.3