aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2025-03-31 20:00:04 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2025-04-03 12:40:48 +0200
commit04e78dbc777b5e11e91156120e963a044f42b3b2 (patch)
tree4acac9394a637131018b69c449761c214ef8f67e
parent7449bb77fb25d33f0e8b0394e914cd31e00a9c60 (diff)
downloadnextcloud-server-04e78dbc777b5e11e91156120e963a044f42b3b2.tar.gz
nextcloud-server-04e78dbc777b5e11e91156120e963a044f42b3b2.zip
refactor: remove mixing from FileMimeType as it is bad practice
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/workflowengine/src/components/Checks/FileMimeType.vue13
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/workflowengine/src/components/Checks/FileMimeType.vue b/apps/workflowengine/src/components/Checks/FileMimeType.vue
index 2e3ef4a0de5..6a7e6f21f23 100644
--- a/apps/workflowengine/src/components/Checks/FileMimeType.vue
+++ b/apps/workflowengine/src/components/Checks/FileMimeType.vue
@@ -41,7 +41,6 @@
<script>
import NcEllipsisedOption from '@nextcloud/vue/components/NcEllipsisedOption'
import NcSelect from '@nextcloud/vue/components/NcSelect'
-import valueMixin from './../../mixins/valueMixin.js'
import { imagePath } from '@nextcloud/router'
export default {
@@ -50,9 +49,6 @@ export default {
NcEllipsisedOption,
NcSelect,
},
- mixins: [
- valueMixin
- ],
emits: ['update:model-value'],
@@ -80,6 +76,7 @@ export default {
id: 'application/pdf',
},
],
+ newValue: [],
}
},
props: {
@@ -88,6 +85,11 @@ export default {
default: '',
},
},
+ watch: {
+ modelValue() {
+ this.updateInternalValue()
+ },
+ },
computed: {
options() {
return [...this.predefinedTypes, this.customValue]
@@ -125,6 +127,9 @@ export default {
const result = regexRegex.exec(string)
return result !== null
},
+ updateInternalValue() {
+ this.newValue = this.modelValue
+ },
setValue(value) {
if (value !== null) {
this.newValue = value.id