Commit f3639625 authored by Janis Streib's avatar Janis Streib 🦉
Browse files

ADD: dbeditor option: show_result

parent cab91442
Pipeline #117235 passed with stages
in 4 minutes and 44 seconds
......@@ -33,7 +33,8 @@
v-bind:key="attr"
v-if="'new' in data && (!data.new.isRequired && !non_optionals.includes(attr))"></DataEditField>
</template>
<hr/>
<b-checkbox v-model="show_result_int">Ergebnis anfordern</b-checkbox>
</b-collapse>
</template>
</template>
......@@ -62,7 +63,8 @@
v-if="'new' in data && !non_optionals_order.includes(attr)"
></DataEditField>
</template>
<hr/>
<b-checkbox v-model="show_result_int">Ergebnis anfordern</b-checkbox>
</b-collapse>
</template>
</template>
......@@ -80,6 +82,7 @@ export default {
components: {DataEditField},
data() {
return {
show_result_int: false,
should_open: false,
object_definition: null,
object_definition_referencing_by_attribute: null,
......@@ -113,7 +116,7 @@ export default {
new: TransactionUtil.remove_empty_data(this.object_functions[this.object_function].parameters, new_params),
old: this.old_data
}
ta.show_result = this.show_result
ta.show_result = this.show_result_int
ta.old_uuid = this.old_uuid
ta.uuid = uuidv4()
ta.object_fq_name = this.object_fq_name
......@@ -245,6 +248,7 @@ export default {
immediate: true,
deep: true,
async handler() {
this.show_result_int = this.show_result
if (this.object_fq_name == null || (this.object_definition != null && this.object_fq_name === this.object_definition.fq_name)) {
window.console.debug('Skip object_fq_name check')
this.$emit('ready')
......
......@@ -163,6 +163,7 @@
:input_reducer="edit_elem.input_reducer"
:preview_fields="edit_elem.preview_fields"
:object_title="edit_elem.object_title"
:show_result="edit_elem.show_result"
@ready="modalReady()"
></DBEditor>
</div>
......
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