Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nomad-FAIR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
nomad-lab
nomad-FAIR
Commits
ee89360a
Commit
ee89360a
authored
2 years ago
by
Markus Scheidgen
Browse files
Options
Downloads
Plain Diff
Merge branch '1026-referenceEditQuantity-file-structure' into 'develop'
referenceEditQuantity api call Closes
#1026
See merge request
!845
parents
0ddf52b7
5064ff16
No related branches found
No related tags found
1 merge request
!845
referenceEditQuantity api call
Pipeline
#143609
failed
2 years ago
Stage: build
Stage: test
Stage: deploy
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gui/src/components/editQuantity/ReferenceEditQuantity.js
+3
-6
3 additions, 6 deletions
gui/src/components/editQuantity/ReferenceEditQuantity.js
with
3 additions
and
6 deletions
gui/src/components/editQuantity/ReferenceEditQuantity.js
+
3
−
6
View file @
ee89360a
...
...
@@ -59,12 +59,11 @@ const ReferenceEditQuantity = React.memo(function ReferenceEditQuantity(props) {
if
(
input
!==
''
)
{
query
[
'
entry_name.prefix
'
]
=
input
}
const
sections
=
referencedSectionQualifiedNames
?.
map
(
qualifiedName
=>
({
'
sections
'
:
qualifiedName
}))
const
sections
=
referencedSectionQualifiedNames
?.
map
(
qualifiedName
=>
({
'
sections
'
:
qualifiedName
,
...
query
}))
api
.
post
(
'
entries/query
'
,
{
'
owner
'
:
'
visible
'
,
'
query
'
:
{
'
or
'
:
sections
,
...
query
'
or
'
:
sections
},
'
required
'
:
{
'
include
'
:
[
...
...
@@ -144,11 +143,9 @@ const ReferenceEditQuantity = React.memo(function ReferenceEditQuantity(props) {
},
[
onChange
])
const
createNewEntry
=
useCallback
((
uploadId
,
fileName
)
=>
{
const
template
=
{
name
:
'
noname
'
}
const
archive
=
{
data
:
{
m_def
:
quantityDef
.
type
.
_referencedSection
.
_url
||
quantityDef
.
type
.
_referencedSection
.
_qualifiedName
,
...
template
m_def
:
quantityDef
.
type
.
_referencedSection
.
_url
||
quantityDef
.
type
.
_referencedSection
.
_qualifiedName
}
}
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
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