[AAE-207] support aps 1.x for upload reset (#5260)

* support aps 1.x for upload reset

* update test

* revert pdfjd change

* fix error reporting and crash from upload button

* i18n support for generic error

* fix test
This commit is contained in:
Denys Vuika
2019-11-21 15:06:00 +00:00
committed by Eugenio Romano
parent c61de922af
commit e806e97c75
8 changed files with 29 additions and 26 deletions

View File

@@ -120,7 +120,13 @@ export class UploadButtonComponent extends UploadBase implements OnInit, OnChang
this.contentService.getNode(this.rootFolderId, opts).subscribe(
(res) => this.permissionValue.next(this.nodeHasPermission(res.entry, AllowableOperationsEnum.CREATE)),
(error) => this.error.emit(error)
(error: { error: Error }) => {
if (error && error.error) {
this.error.emit(error.error.message);
} else {
this.error.emit('FILE_UPLOAD.BUTTON.PERMISSION_CHECK_ERROR');
}
}
);
}
}