From a419fc532c560a615cf0e8def78c9d0c3cec05f0 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 1 Apr 2025 21:30:18 +0200 Subject: [PATCH] style(vue): satisfy linter Signed-off-by: Arthur Schiwon --- .../src/components/Checks/FileMimeType.vue | 27 +++++++++---------- .../src/components/Checks/RequestTime.vue | 14 +++++----- .../src/components/Checks/RequestURL.vue | 24 ++++++++--------- .../components/Checks/RequestUserAgent.vue | 12 ++++----- .../components/Checks/RequestUserGroup.vue | 25 +++++++++-------- 5 files changed, 50 insertions(+), 52 deletions(-) diff --git a/apps/workflowengine/src/components/Checks/FileMimeType.vue b/apps/workflowengine/src/components/Checks/FileMimeType.vue index bd0d80f697c..6817b128e27 100644 --- a/apps/workflowengine/src/components/Checks/FileMimeType.vue +++ b/apps/workflowengine/src/components/Checks/FileMimeType.vue @@ -4,8 +4,7 @@ --> @@ -45,6 +44,7 @@ export default { default: () => { return {} }, }, }, + emits: ['update:model-value'], data() { return { groups, @@ -54,12 +54,17 @@ export default { }, computed: { currentValue: { - get: function () { + get() { return this.groups.find(group => group.id === this.newValue) || null }, - set: function (value) { + set(value) { this.newValue = value - } + }, + }, + }, + watch: { + modelValue() { + this.updateInternalValue() }, }, async mounted() { @@ -72,12 +77,6 @@ export default { await this.searchAsync(this.newValue) } }, - emits: ['update:model-value'], - watch: { - modelValue() { - this.updateInternalValue() - }, - }, methods: { t, @@ -111,7 +110,7 @@ export default { update(value) { this.newValue = value.id this.$emit('update:model-value', this.newValue) - } + }, }, }