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
88f61feb
Commit
88f61feb
authored
Dec 19, 2019
by
Markus Scheidgen
Browse files
Fixed: allow to delete empty uploads.
parent
d3b96e98
Pipeline
#65820
passed with stages
in 29 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gui/src/components/uploads/Upload.js
View file @
88f61feb
...
...
@@ -514,11 +514,11 @@ class Upload extends React.Component {
const
{
calcs
,
tasks_status
,
waiting
}
=
this
.
state
.
upload
const
{
pagination
}
=
calcs
if
(
pagination
.
total
===
0
)
{
if
(
pagination
.
total
===
0
&&
tasks_status
!==
'
SUCCESS
'
)
{
if
(
!
this
.
state
.
upload
.
tasks_running
)
{
return
(
<
Typography
className
=
{
classes
.
detailsContent
}
>
{
tasks_status
===
'
SUCCESS
'
?
'
No calculcations found.
'
:
'
No calculations to show.
'
}
No
calculations
to
show
.
<
/Typography
>
)
}
else
{
...
...
@@ -553,7 +553,7 @@ class Upload extends React.Component {
<
DeleteIcon
/>
<
/Tooltip
>
<
/IconButton
>
<
IconButton
disabled
=
{
running
||
tasks_status
!==
'
SUCCESS
'
}
onClick
=
{
this
.
handlePublishOpen
}
>
<
IconButton
disabled
=
{
running
||
tasks_status
!==
'
SUCCESS
'
||
data
.
pagination
.
total
===
0
}
onClick
=
{
this
.
handlePublishOpen
}
>
<
Tooltip
title
=
"
Publish upload
"
>
<
PublishIcon
/>
<
/Tooltip
>
...
...
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