mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 02:25:07 +00:00
show the edit button only when !uploadInProgressOrComplete
This commit is contained in:
parent
fc1855b30f
commit
55d38e7b5f
1 changed files with 4 additions and 3 deletions
|
|
@ -9,9 +9,10 @@ function EditButton ({
|
|||
i18n,
|
||||
onClick
|
||||
}) {
|
||||
if ((!uploadInProgressOrComplete &&
|
||||
metaFields &&
|
||||
metaFields.length > 0) || canEditFile(file)) {
|
||||
if (
|
||||
(!uploadInProgressOrComplete && metaFields && metaFields.length > 0) ||
|
||||
(!uploadInProgressOrComplete && canEditFile(file))
|
||||
) {
|
||||
return (
|
||||
<button
|
||||
class="uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue