[ADF-3233] fixed demo shell filtering for files on drag&drop] (#3504)

This commit is contained in:
Vito
2018-06-19 17:21:38 +01:00
committed by Eugenio Romano
parent ea4c9fe9aa
commit 69b47cfd22
2 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,7 @@
<div class="document-list-container" fxLayout="row" fxLayoutAlign="start stretch" fxLayoutGap="16px">
<adf-upload-drag-area fxFlex="1 1 auto"
[disabled]="disableDragArea"
[acceptedFilesType]="acceptedFilesType"
[acceptedFilesType]="getFileFiltering()"
[rootFolderId]="getDocumentListCurrentFolderId()"
[versioning]="versioning"
[adf-node-permission]="'create'"

View File

@@ -551,4 +551,8 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
runCustomAction(event) {
console.log(event);
}
getFileFiltering() {
return this.acceptedFilesTypeShow ? this.acceptedFilesType : '*';
}
}