@widgetic/editor 3.10.52 → 3.10.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -92,7 +92,7 @@ export default class UploadService extends EventsMixin(Service) {
|
|
|
92
92
|
lastModified: Date.now(),
|
|
93
93
|
uploadFile,
|
|
94
94
|
});
|
|
95
|
-
console.log("on upload file:", file);
|
|
95
|
+
// console.log("on upload file:", file);
|
|
96
96
|
|
|
97
97
|
// push it to the files array
|
|
98
98
|
this.files.push(file);
|
|
@@ -306,13 +306,19 @@ export default {
|
|
|
306
306
|
|
|
307
307
|
return x - y;
|
|
308
308
|
});
|
|
309
|
-
console.log("uploadedFiles after sort: ", files);
|
|
309
|
+
// console.log("uploadedFiles after sort: ", files);
|
|
310
310
|
|
|
311
311
|
return this.set({ files })
|
|
312
312
|
})
|
|
313
313
|
.then(this.activate.bind(this))
|
|
314
314
|
.catch(this._reportError.bind(this))
|
|
315
|
-
.then(_ =>
|
|
315
|
+
.then(_ => {
|
|
316
|
+
// hide loading spinner
|
|
317
|
+
this.set({ loading: false, error: null })
|
|
318
|
+
|
|
319
|
+
// scroll to uploads files list to bottom
|
|
320
|
+
this.scrollToListBottom();
|
|
321
|
+
});
|
|
316
322
|
},
|
|
317
323
|
|
|
318
324
|
deleteSelected() {
|