mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Eugenio Romano
parent
c61de922af
commit
e806e97c75
@@ -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');
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user