Skip to content
Snippets Groups Projects
Commit 9a647190 authored by Sebastian Böckelmann's avatar Sebastian Böckelmann
Browse files

Add collapse icon to advanced parameter link

parent 26e2f4b9
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,10 @@ ...@@ -20,7 +20,10 @@
v-if="'new' in data && (data.new.isRequired || non_optionals.includes(attr))"></DataEditField> v-if="'new' in data && (data.new.isRequired || non_optionals.includes(attr))"></DataEditField>
</template> </template>
<template> <template>
<b-link v-b-toggle.collapse-optional>{{ $tc('components.db_editor.advanced_parameter', 2) }}</b-link> <b-link v-b-toggle.collapse-optional>
<span>{{ $tc('components.db_editor.advanced_parameter', 2) }}</span>
<NETVSIcon class="collapse-icon" icon="collapse"></NETVSIcon>
</b-link>
<b-collapse id="collapse-optional"> <b-collapse id="collapse-optional">
<hr/> <hr/>
<template v-for="(data,attr) in object_functions[object_function].parameters"> <template v-for="(data,attr) in object_functions[object_function].parameters">
...@@ -62,9 +65,12 @@ ...@@ -62,9 +65,12 @@
/> />
</template> </template>
<template> <template>
<b-link v-b-toggle.collapse-optional>{{ $tc('components.db_editor.advanced_parameter', 2) }}</b-link> <b-link v-b-toggle.collapse-optional>
<span>{{ $tc('components.db_editor.advanced_parameter', 2) }}</span>
<NETVSIcon class="collapse-icon" icon="collapse"></NETVSIcon>
</b-link>
<b-collapse id="collapse-optional"> <b-collapse id="collapse-optional">
<hr/> <hr v-if="object_functions[object_function].parameters.length > 0" />
<template v-for="(data,attr) in object_functions[object_function].parameters"> <template v-for="(data,attr) in object_functions[object_function].parameters">
<template v-if="'new' in data && !non_optionals_order.includes(attr)"> <template v-if="'new' in data && !non_optionals_order.includes(attr)">
<APIObjectDataEditFieldList <APIObjectDataEditFieldList
...@@ -103,10 +109,11 @@ ...@@ -103,10 +109,11 @@
import DataEditField from './APIObjectDataEditField.vue' import DataEditField from './APIObjectDataEditField.vue'
import TransactionUtil from '@/util/transactionutil' import TransactionUtil from '@/util/transactionutil'
import APIObjectDataEditFieldList from '@/components/db-editor/APIObjectDataEditFieldList.vue' import APIObjectDataEditFieldList from '@/components/db-editor/APIObjectDataEditFieldList.vue'
import NETVSIcon from '@/icons/NETVSIcon.vue'
export default { export default {
name: 'APIObjectDBEditorBase', name: 'APIObjectDBEditorBase',
components: {APIObjectDataEditFieldList, DataEditField}, components: { NETVSIcon, APIObjectDataEditFieldList, DataEditField},
data() { data() {
return { return {
show_result_int: false, show_result_int: false,
......
...@@ -44,7 +44,10 @@ ...@@ -44,7 +44,10 @@
v-if="'new' in data && (data.new.isRequired || non_optionals.includes(attr))"></APIObjectDataEditField> v-if="'new' in data && (data.new.isRequired || non_optionals.includes(attr))"></APIObjectDataEditField>
</template> </template>
<template> <template>
<b-link v-b-toggle.collapse-optional>{{ $tc('components.db_editor.advanced_parameter', 2) }}</b-link> <b-link v-b-toggle.collapse-optional>
<span>{{ $tc('components.db_editor.advanced_parameter', 2) }}</span>
<NETVSIcon class="collapse-icon" icon="collapse"></NETVSIcon>
</b-link>
<b-collapse id="collapse-optional"> <b-collapse id="collapse-optional">
<hr/> <hr/>
<template v-for="(data,attr) in object_functions[object_function].parameters"> <template v-for="(data,attr) in object_functions[object_function].parameters">
...@@ -96,7 +99,10 @@ ...@@ -96,7 +99,10 @@
</template> </template>
</template> </template>
<template> <template>
<b-link v-b-toggle.collapse-optional>{{ $tc('components.db_editor.advanced_parameter', 2) }}</b-link> <b-link v-b-toggle.collapse-optional>
<span>{{ $tc('components.db_editor.advanced_parameter', 2) }}</span>
<NETVSIcon class="collapse-icon" icon="collapse"></NETVSIcon>
</b-link>
<b-collapse id="collapse-optional"> <b-collapse id="collapse-optional">
<hr/> <hr/>
<div v-for="(v, id) in template.variables" :key="v.id"> <div v-for="(v, id) in template.variables" :key="v.id">
...@@ -144,6 +150,7 @@ import JSONTemplateDataEditField from '@/components/db-editor/JSONTemplateDataEd ...@@ -144,6 +150,7 @@ import JSONTemplateDataEditField from '@/components/db-editor/JSONTemplateDataEd
import JSONTemplateDataEditFieldList from '@/components/db-editor/JSONTemplateDataEditFieldList.vue' import JSONTemplateDataEditFieldList from '@/components/db-editor/JSONTemplateDataEditFieldList.vue'
import APIObjectDataEditField from '@/components/db-editor/APIObjectDataEditField.vue' import APIObjectDataEditField from '@/components/db-editor/APIObjectDataEditField.vue'
import APIObjectDataEditFieldList from '@/components/db-editor/APIObjectDataEditFieldList.vue' import APIObjectDataEditFieldList from '@/components/db-editor/APIObjectDataEditFieldList.vue'
import NETVSIcon from '@/icons/NETVSIcon.vue'
const props = Object.assign({}, APIObjectDBEditor.props) const props = Object.assign({}, APIObjectDBEditor.props)
props.template = { props.template = {
...@@ -154,6 +161,7 @@ delete props.only_emit_ta ...@@ -154,6 +161,7 @@ delete props.only_emit_ta
export default { export default {
name: 'APIObjectDBEditor', name: 'APIObjectDBEditor',
components: { components: {
NETVSIcon,
APIObjectDataEditFieldList, APIObjectDataEditFieldList,
APIObjectDataEditField, APIObjectDataEditField,
JSONTemplateDataEditFieldList, JSONTemplateDataEditFieldList,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment