Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
netvs-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scc-net
netvs
netvs-core
Commits
9a647190
Commit
9a647190
authored
4 months ago
by
Sebastian Böckelmann
Browse files
Options
Downloads
Patches
Plain Diff
Add collapse icon to advanced parameter link
parent
26e2f4b9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/db-editor/APIObjectDBEditorBase.vue
+11
-4
11 additions, 4 deletions
src/components/db-editor/APIObjectDBEditorBase.vue
src/components/db-editor/HybridDBEditor.vue
+10
-2
10 additions, 2 deletions
src/components/db-editor/HybridDBEditor.vue
with
21 additions
and
6 deletions
src/components/db-editor/APIObjectDBEditorBase.vue
+
11
−
4
View file @
9a647190
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
src/components/db-editor/HybridDBEditor.vue
+
10
−
2
View file @
9a647190
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment