fix on click function when in plain upload mode (#5876)

This commit is contained in:
Urse Daniel
2020-07-16 16:19:09 +03:00
committed by GitHub
parent dace956aa0
commit e293aa048e

View File

@@ -105,6 +105,7 @@ export class UploadButtonComponent extends UploadBase implements OnInit, OnChang
} }
onClickUploadButton(): void { onClickUploadButton(): void {
if (this.file) {
const files: File[] = [this.file]; const files: File[] = [this.file];
if (this.hasAllowableOperations) { 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' })); this.permissionEvent.emit(new PermissionModel({ type: 'content', action: 'upload', permission: 'create' }));
} }
} }
}
onDirectoryAdded($event: any): void { onDirectoryAdded($event: any): void {
if (this.hasAllowableOperations) { if (this.hasAllowableOperations) {