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 @@
v-if="'new' in data && (data.new.isRequired || non_optionals.includes(attr))"></DataEditField>
</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">
<hr/>
<template v-for="(data,attr) in object_functions[object_function].parameters">
......@@ -62,9 +65,12 @@
/>
</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">
<hr/>
<hr v-if="object_functions[object_function].parameters.length > 0" />
<template v-for="(data,attr) in object_functions[object_function].parameters">
<template v-if="'new' in data && !non_optionals_order.includes(attr)">
<APIObjectDataEditFieldList
......@@ -103,10 +109,11 @@
import DataEditField from './APIObjectDataEditField.vue'
import TransactionUtil from '@/util/transactionutil'
import APIObjectDataEditFieldList from '@/components/db-editor/APIObjectDataEditFieldList.vue'
import NETVSIcon from '@/icons/NETVSIcon.vue'
export default {
name: 'APIObjectDBEditorBase',
components: {APIObjectDataEditFieldList, DataEditField},
components: { NETVSIcon, APIObjectDataEditFieldList, DataEditField},
data() {
return {
show_result_int: false,
......
......@@ -44,7 +44,10 @@
v-if="'new' in data && (data.new.isRequired || non_optionals.includes(attr))"></APIObjectDataEditField>
</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">
<hr/>
<template v-for="(data,attr) in object_functions[object_function].parameters">
......@@ -96,7 +99,10 @@
</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">
<hr/>
<div v-for="(v, id) in template.variables" :key="v.id">
......@@ -144,6 +150,7 @@ import JSONTemplateDataEditField from '@/components/db-editor/JSONTemplateDataEd
import JSONTemplateDataEditFieldList from '@/components/db-editor/JSONTemplateDataEditFieldList.vue'
import APIObjectDataEditField from '@/components/db-editor/APIObjectDataEditField.vue'
import APIObjectDataEditFieldList from '@/components/db-editor/APIObjectDataEditFieldList.vue'
import NETVSIcon from '@/icons/NETVSIcon.vue'
const props = Object.assign({}, APIObjectDBEditor.props)
props.template = {
......@@ -154,6 +161,7 @@ delete props.only_emit_ta
export default {
name: 'APIObjectDBEditor',
components: {
NETVSIcon,
APIObjectDataEditFieldList,
APIObjectDataEditField,
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