diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-07-22 13:21:25 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-07-22 13:21:25 +0200 |
commit | 7ca81f360f42341b2941798374160d362507ba26 (patch) | |
tree | a3d4701504898e6c864980b989b78fc88ed92fbd /apps/workflowengine/src | |
parent | 49b490ce6d1d726aa1c335b0b5c440d8a3cae5ff (diff) | |
download | nextcloud-server-7ca81f360f42341b2941798374160d362507ba26.tar.gz nextcloud-server-7ca81f360f42341b2941798374160d362507ba26.zip |
Fix eslint and update bundles
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/workflowengine/src')
-rw-r--r-- | apps/workflowengine/src/components/Check.vue | 3 | ||||
-rw-r--r-- | apps/workflowengine/src/components/Event.vue | 2 | ||||
-rw-r--r-- | apps/workflowengine/src/components/Rule.vue | 8 |
3 files changed, 11 insertions, 2 deletions
diff --git a/apps/workflowengine/src/components/Check.vue b/apps/workflowengine/src/components/Check.vue index 2ea267878fa..d1c18f9d8a0 100644 --- a/apps/workflowengine/src/components/Check.vue +++ b/apps/workflowengine/src/components/Check.vue @@ -125,6 +125,7 @@ export default { if (this.currentOption && this.currentOption.validate) { this.valid = !!this.currentOption.validate(this.check) } + // eslint-disable-next-line vue/no-mutating-props this.check.invalid = !this.valid this.$emit('validate', this.valid) }, @@ -133,7 +134,9 @@ export default { if (this.check.class !== this.currentOption.class || matchingOperator === -1) { this.currentOperator = this.operators[0] } + // eslint-disable-next-line vue/no-mutating-props this.check.class = this.currentOption.class + // eslint-disable-next-line vue/no-mutating-props this.check.operator = this.currentOperator.operator this.validate() diff --git a/apps/workflowengine/src/components/Event.vue b/apps/workflowengine/src/components/Event.vue index a00777d25e6..97f24af22f3 100644 --- a/apps/workflowengine/src/components/Event.vue +++ b/apps/workflowengine/src/components/Event.vue @@ -12,7 +12,7 @@ :auto-limit="false" :disabled="allEvents.length <= 1" @input="updateEvent"> - <template slot="selection" slot-scope="{ values, search, isOpen }"> + <template slot="selection" slot-scope="{ values, isOpen }"> <div v-if="values.length && !isOpen" class="eventlist"> <img class="option__icon" :src="values[0].entity.icon"> <span v-for="(value, index) in values" :key="value.id" class="text option__title option__title_single">{{ value.displayName }} <span v-if="index+1 < values.length">, </span></span> 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> |