Commit bb593e79 authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: state handling for ta-edit

parent 3ff23b17
Pipeline #91452 passed with stages
in 7 minutes and 38 seconds
......@@ -101,8 +101,8 @@
ta['non_optionals_order'] = this.non_optionals_order
ta['non_optionals'] = this.non_optionals
ta['func_descr'] = this.object_functions[this.object_function].parameters
let prev_fields = null
if (this.preview_fields == null) {
let prev_fields = this.preview_fields
if (prev_fields == null) {
if (this.non_optionals.length != 0) {
prev_fields = this.non_optionals
}
......
......@@ -12,11 +12,11 @@
></b-form-input>
<b-checkbox :checked="attribute_preset || false" :name="attribute_name"
v-if="object_attribute.dataType=='boolean'" :disabled="input_reducer() instanceof Boolean && !input_reducer()"></b-checkbox>
<b-form-select :name="attribute_name" v-if="input_reducer() instanceof Object">
<b-form-select :name="attribute_name" v-if="input_reducer() instanceof Object" v-model="attribute_preset">
<template v-slot:first>
<b-form-select-option selected :value="null" disabled>-- Auswahl treffen --</b-form-select-option>
<b-form-select-option :value="null" disabled>-- Auswahl treffen --</b-form-select-option>
</template>
<template v-for="(data,key) in input_reducer()">
<template v-for="(data,key) in input_reducer()" >
<b-form-select-option :key="key" :value="key">{{data.display_name}}</b-form-select-option>
</template>
</b-form-select>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment