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

UPD: fix: always show textbox

parent f66194b0
Pipeline #112456 passed with stages
in 9 minutes and 39 seconds
......@@ -3,21 +3,16 @@
<b-form-group
:title="`${object_attribute.description_detail}\n\nName: ${attribute_name}\nReference: ${attribute_reference_name}\nReferencing: ${attribute_referencing}`"
:label="object_attribute.description_sys_scope">
<b-form-input :value="attribute_preset || ''"
v-if="(input_reducer === null || input_reducer instanceof Boolean)&&
(object_attribute.data_type == 'text' || object_attribute.data_type == 'text_kw_lc_long' || object_attribute.data_type == 'text_long' || object_attribute.data_type == 'mac_address' || object_attribute.data_type == 'mac_address8' || object_attribute.data_type=='fqdn')"
:name="attribute_name" :disabled="input_reducer instanceof Boolean && !input_reducer"
></b-form-input>
<b-form-input :value="attribute_preset || ''"
v-if="(input_reducer === null || input_reducer instanceof Boolean) && (object_attribute.data_type.includes('integer'))"
type="number"
:name="attribute_name" :disabled="input_reducer instanceof Boolean && !input_reducer"
></b-form-input>
<input type="hidden" :name="attribute_name" v-if="object_attribute.data_type=='boolean'" :value="false"/>
<input type="hidden" :name="attribute_name" v-else-if="object_attribute.data_type=='boolean'" :value="false"/>
<b-checkbox :checked="attribute_preset || false" :name="attribute_name"
v-if="object_attribute.data_type=='boolean'"
v-else-if="object_attribute.data_type=='boolean'"
:disabled="input_reducer instanceof Boolean && !input_reducer"></b-checkbox>
<b-form-select :name="attribute_name" v-if="input_reducer instanceof Object" v-model="attribute_preset">
<b-form-select :name="attribute_name" v-else-if="input_reducer instanceof Object" v-model="attribute_preset">
<template v-slot:first>
<b-form-select-option :value="null" disabled>-- Auswahl treffen --</b-form-select-option>
</template>
......@@ -25,6 +20,9 @@
<b-form-select-option :key="key" :value="key">{{ data.display_name }}</b-form-select-option>
</template>
</b-form-select>
<b-form-input :value="attribute_preset || ''" v-else
:name="attribute_name" :disabled="input_reducer instanceof Boolean && !input_reducer"
></b-form-input>
</b-form-group>
</div>
</template>
......
Markdown is supported
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