Explorar el Código

Enable image previews again

Artur Paikin hace 9 años
padre
commit
9cf2f07cdd
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/plugins/ProgressDrawer.js

+ 4 - 0
src/plugins/ProgressDrawer.js

@@ -47,6 +47,10 @@ export default class ProgressDrawer extends Plugin {
             ${file.type.specific ? file.type.specific.toUpperCase() : '?'}
           </text>
           </svg>
+          ${file.type.general === 'image'
+            ? yo`<img class="UppyProgressDrawer-itemIcon" alt="${file.name}" src="${file.preview}">`
+            : yo`<span class="UppyProgressDrawer-itemType">${file.type.specific}</span>`
+          }
       </div>
       <div class="UppyProgressDrawer-itemInner">
         <h4 class="UppyProgressDrawer-itemName">