mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix on click function when in plain upload mode (#5876)
This commit is contained in:
@@ -105,6 +105,7 @@ export class UploadButtonComponent extends UploadBase implements OnInit, OnChang
|
||||
}
|
||||
|
||||
onClickUploadButton(): void {
|
||||
if (this.file) {
|
||||
const files: File[] = [this.file];
|
||||
|
||||
if (this.hasAllowableOperations) {
|
||||
@@ -113,6 +114,7 @@ export class UploadButtonComponent extends UploadBase implements OnInit, OnChang
|
||||
this.permissionEvent.emit(new PermissionModel({ type: 'content', action: 'upload', permission: 'create' }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onDirectoryAdded($event: any): void {
|
||||
if (this.hasAllowableOperations) {
|
||||
|
Reference in New Issue
Block a user