|
|
@ -68,7 +68,6 @@ export default class FileManager {
|
|
|
|
var utils = new DataUtils();
|
|
|
|
var utils = new DataUtils();
|
|
|
|
utils.imgLoad(sortOrder[step].earl).then(blob => {
|
|
|
|
utils.imgLoad(sortOrder[step].earl).then(blob => {
|
|
|
|
var fresh = new File([blob], sortOrder[step].fileName, { type: blob.type });
|
|
|
|
var fresh = new File([blob], sortOrder[step].fileName, { type: blob.type });
|
|
|
|
console.log('FRESH', fresh);
|
|
|
|
|
|
|
|
this.files.push(fresh);
|
|
|
|
this.files.push(fresh);
|
|
|
|
var limit = count - 1;
|
|
|
|
var limit = count - 1;
|
|
|
|
if (this.files.length <= limit) {
|
|
|
|
if (this.files.length <= limit) {
|
|
|
@ -82,9 +81,6 @@ export default class FileManager {
|
|
|
|
|
|
|
|
|
|
|
|
sortFiles(files) {
|
|
|
|
sortFiles(files) {
|
|
|
|
var self = this;
|
|
|
|
var self = this;
|
|
|
|
//this.files = []; //clear files array
|
|
|
|
|
|
|
|
//this.imageList.innerHTML = '';
|
|
|
|
|
|
|
|
//this.fileList.innerHTML = '';
|
|
|
|
|
|
|
|
for (var i = 0, file; (file = files[i]); i++) {
|
|
|
|
for (var i = 0, file; (file = files[i]); i++) {
|
|
|
|
var reader = new FileReader();
|
|
|
|
var reader = new FileReader();
|
|
|
|
// Closure to capture the file information
|
|
|
|
// Closure to capture the file information
|
|
|
|