DSC-1111 Provided buttons next to the logo delete to save changes in the edit community page, also now the file upload is started automatically

This commit is contained in:
Sondissimo
2023-06-05 14:17:34 +02:00
committed by Mattia Vianelli
parent ab52cdb158
commit 2ae82fb07a
3 changed files with 3 additions and 5 deletions

View File

@@ -130,6 +130,9 @@ export class UploaderComponent {
ngAfterViewInit() {
this.uploader.onAfterAddingAll = ((items) => {
this.onFileSelected.emit(items);
if (this.uploader.queue.length > 0) {
this.uploader.uploadAll();
}
});
if (isUndefined(this.onBeforeUpload)) {
this.onBeforeUpload = () => {return;};