Skip to content

Commit

Permalink
Adding property filter don't add parameter to child process any longer
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 8, 2022
1 parent 0ad2643 commit 6cfc16f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ParameterDataType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<!-- URL -->
<input class="fieldValue" v-else-if="type === 'url' || type === 'uri'" v-model="state" type="url" :name="name" :disabled="!editable" />
<!-- Objects / Arrays -->
<ObjectEditor v-else-if="nativeType === 'object' || nativeType === 'array'" :editable="editable" :parameter="parameter" :schema="schema" :isObject="nativeType === 'object'" v-model="state" :context="context" />
<ObjectEditor v-else-if="nativeType === 'object' || nativeType === 'array'" :editable="editable" :parameter="parameter" :schema="schema" :isObject="nativeType === 'object'" v-model="state" :parent="parent" :context="context" />
<!-- String and all other -->
<input class="fieldValue" v-else v-model="state" type="text" :name="name" :disabled="!editable" />
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/components/datatypes/ObjectEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<input v-else-if="isObject" v-model="e.key" type="text" :disabled="!editable"/>
<template v-else>{{ k+1 }}</template>
</label>
<ParameterDataTypes :editable="editable" :parameter="elementSchema(k, e.key)" :isItem="true" :context="context" v-model="e.value" />
<ParameterDataTypes :editable="editable" :parameter="elementSchema(k, e.key)" :isItem="true" :parent="parent" :context="context" v-model="e.value" />
<button v-if="editable && !e.prop.required" :disabled="count <= minCount" class="deleteBtn" type="button" @click="remove(k)"><i class="fas fa-trash"></i></button>
<button v-show="editable && !isObject" class="mover" type="button"><i class="fas fa-arrows-alt"></i></button>
</div>
Expand Down Expand Up @@ -59,6 +59,7 @@ export default {
type: Boolean,
default: false
},
parent: Object,
context: {}
},
data() {
Expand Down

0 comments on commit 6cfc16f

Please sign in to comment.