Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
32699173
Commit
32699173
authored
Feb 16, 2021
by
Markus Scheidgen
Browse files
Allow admin to download selected entries.
#496
parent
51257236
Changes
1
Hide whitespace changes
Inline
Side-by-side
gui/src/components/search/EntryList.js
View file @
32699173
...
...
@@ -247,17 +247,6 @@ export class EntryListUnstyled extends React.Component {
}
}
selectionQuery
()
{
const
{
selected
}
=
this
.
state
if
(
selected
)
{
return
{
'
calc_id
'
:
selected
.
join
(
'
,
'
)
}
}
else
{
return
this
.
props
.
query
}
}
renderEntryDetails
(
row
)
{
const
{
classes
}
=
this
.
props
const
domain
=
(
row
.
domain
&&
domains
[
row
.
domain
])
||
domains
.
dft
...
...
@@ -375,7 +364,7 @@ export class EntryListUnstyled extends React.Component {
/
>
const
example
=
selected
&&
selected
.
length
>
0
?
results
.
find
(
d
=>
d
.
calc_id
===
selected
[
0
])
:
results
[
0
]
const
selectQuery
=
(
selected
&&
selected
.
length
>
0
)
?
{
calc_id
:
selected
}
:
query
const
selectQuery
=
(
selected
&&
selected
.
length
>
0
)
?
{
calc_id
:
selected
,
owner
:
query
[
'
owner
'
]
}
:
query
const
createActions
=
(
props
,
moreActions
)
=>
<
React
.
Fragment
>
{
example
&&
editable
?
<
EditUserMetadataDialog
example
=
{
example
}
total
=
{
selected
===
null
?
totalNumber
:
selected
.
length
}
...
...
Write
Preview
Markdown
is supported
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