Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
b5596f5c
Commit
b5596f5c
authored
Mar 18, 2022
by
Markus Scheidgen
Browse files
Merge branch 'master' into 'v1.0.6'
Merge latest released changes. See merge request
!600
parents
a9105a2b
535d0c11
Pipeline
#126867
passed with stages
in 30 minutes and 47 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gui/src/components/dataset/ResolveDOI.js
View file @
b5596f5c
...
...
@@ -44,7 +44,7 @@ export default function ResolveDOI() {
})
let
{
doi
}
=
doiMatch
.
params
api
.
get
(
'
/datasets
'
,
{
doi
:
doi
})
api
.
get
(
'
/datasets
/
'
,
{
doi
:
doi
})
.
then
(
response
=>
{
if
(
response
.
pagination
.
total
>=
1
)
{
const
dataset_id
=
response
.
data
[
0
].
dataset_id
...
...
gui/src/components/uploads/EditMetaDataDialog.js
View file @
b5596f5c
...
...
@@ -338,7 +338,7 @@ function EditMetaDataDialog({...props}) {
},
[])
const
createNewDatasets
=
useCallback
(()
=>
{
const
promises
=
actions
.
filter
(
action
=>
action
.
create_dataset
).
map
(
action
=>
api
.
post
(
`/datasets`
,
{
dataset_name
:
action
.
create_dataset
}))
const
promises
=
actions
.
filter
(
action
=>
action
.
create_dataset
).
map
(
action
=>
api
.
post
(
`/datasets
/
`
,
{
dataset_name
:
action
.
create_dataset
}))
return
Promise
.
all
(
promises
)
},
[
api
,
actions
])
...
...
gui/src/components/uploads/UploadPage.js
View file @
b5596f5c
...
...
@@ -355,6 +355,7 @@ function UploadPage() {
})
.
catch
((
error
)
=>
{
if
(
error
instanceof
DoesNotExist
&&
deleteClicked
)
{
history
.
push
(
getUrl
(
'
uploads
'
,
location
))
return
}
if
(
!
hasUpload
&&
error
.
apiMessage
)
{
...
...
@@ -363,17 +364,15 @@ function UploadPage() {
raiseError
(
error
)
}
})
},
[
api
,
hasUpload
,
uploadId
,
pagination
,
deleteClicked
,
raiseError
,
setData
,
setApiData
])
},
[
api
,
hasUpload
,
uploadId
,
pagination
,
deleteClicked
,
raiseError
,
setData
,
setApiData
,
location
,
history
])
// constant fetching of upload data when necessary
useEffect
(()
=>
{
if
(
isProcessing
)
{
const
interval
=
setInterval
(
fetchData
(),
1000
)
return
()
=>
clearInterval
(
interval
)
}
else
if
(
deleteClicked
)
{
history
.
push
(
getUrl
(
'
uploads
'
,
location
))
}
},
[
fetchData
,
isProcessing
,
deleteClicked
,
history
,
location
])
},
[
fetchData
,
isProcessing
])
// initial fetching of upload data
useEffect
(
fetchData
(),
[
fetchData
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment