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
28fd23c9
Commit
28fd23c9
authored
Jan 07, 2022
by
Mohammad Nakhaee
Browse files
Remove the old EditMetadata dialog
parent
8dedf223
Pipeline
#119179
passed with stages
in 26 minutes and 32 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
gui/src/components/entry/EditUserMetadataDialog.js
deleted
100644 → 0
View file @
8dedf223
This diff is collapsed.
Click to expand it.
gui/src/components/uploads/ProcessingTable.js
View file @
28fd23c9
...
...
@@ -25,7 +25,6 @@ import {
Datatable
,
DatatablePagePagination
,
DatatableTable
,
DatatableToolbar
,
DatatableToolbarActions
}
from
'
../datatable/Datatable
'
import
EntryDownloadButton
from
'
../entry/EntryDownloadButton
'
import
EditUserMetadataDialog
from
'
../entry/EditUserMetadataDialog
'
import
Quantity
from
'
../Quantity
'
import
{
uploadPageContext
}
from
'
./UploadPage
'
import
EditMetaDataDialog
from
'
../entry/EditMetaDataDialog
'
...
...
@@ -87,7 +86,7 @@ const defaultSelectedColumns = [
export
default
function
ProcessingTable
(
props
)
{
const
[
selected
,
setSelected
]
=
useState
([])
const
{
data
,
pagination
,
onPaginationChanged
}
=
props
const
{
pagination
}
=
props
const
{
upload
,
isWriter
}
=
useContext
(
uploadPageContext
)
const
selectedQuery
=
useMemo
(()
=>
{
...
...
@@ -107,14 +106,6 @@ export default function ProcessingTable(props) {
<
DatatableToolbarActions
selection
>
<
EntryDownloadButton
tooltip
=
"
Download files
"
query
=
{
selectedQuery
}
/
>
{
isWriter
&&
<
EditMetaDataDialog
isIcon
selectedEntries
=
{
selectedQuery
}
/>
}
{
isWriter
&&
<
EditUserMetadataDialog
example
=
{
selected
===
'
all
'
?
data
[
0
]
:
selected
[
0
]}
query
=
{
selectedQuery
}
total
=
{
pagination
.
total
}
onEditComplete
=
{()
=>
onPaginationChanged
({...
pagination
})}
// simply trigger a refresh
buttonProps
=
{{
variant
:
'
contained
'
,
color
:
'
primary
'
,
disabled
:
upload
?.
process_running
}}
withoutLiftEmbargo
=
{
!
upload
.
published
}
/>
}
<
/DatatableToolbarActions
>
<
/DatatableToolbar
>
<
DatatableTable
actions
=
{
EntryRowActions
}
details
=
{
EntryDetails
}
>
...
...
gui/src/components/uploads/UploadPage.js
View file @
28fd23c9
...
...
@@ -37,7 +37,6 @@ import WithButton from '../utils/WithButton'
import
PublishedIcon
from
'
@material-ui/icons/Public
'
import
UnPublishedIcon
from
'
@material-ui/icons/AccountCircle
'
import
Markdown
from
'
../Markdown
'
import
EditUserMetadataDialog
from
'
../entry/EditUserMetadataDialog
'
import
EditMembersDialog
from
'
../entry/EditMembersDialog
'
import
EditMetaDataDialog
from
'
../entry/EditMetaDataDialog
'
import
Page
from
'
../Page
'
...
...
@@ -511,15 +510,6 @@ function UploadPage() {
edit
all
entries
at
once
.
<
/Typography
>
{
!
isEmpty
&&
<
EditMetaDataDialog
selectedEntries
=
{{
'
upload_id
'
:
upload
.
upload_id
}}
/>
}
{
!
isEmpty
&&
<
EditUserMetadataDialog
example
=
{
data
.
data
[
0
].
entry_metadata
||
{}}
query
=
{{
'
upload_id
'
:
[
uploadId
]}}
total
=
{
data
.
pagination
.
total
}
onEditComplete
=
{()
=>
setPagination
({...
pagination
})}
buttonProps
=
{{
variant
:
'
contained
'
,
color
:
'
primary
'
,
disabled
:
isProcessing
}}
text
=
{
`Edit metadata of all
${
data
.
pagination
.
total
}
entries`
}
withoutLiftEmbargo
=
{
!
isPublished
}
/>
}
<
/StepContent
>
<
/Step>
}
{(
isAuthenticated
&&
isWriter
)
&&
<
Step
expanded
=
{
!
isEmpty
}
>
...
...
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