show the edit button only when !uploadInProgressOrComplete

This commit is contained in:
Artur Paikin 2020-11-16 15:06:46 +00:00
parent fc1855b30f
commit 55d38e7b5f

View file

@ -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"