mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[no-issue] fix e2e uploader (#3840)
* fix e2e upload move viewer subbfolder * fix CS services e2e test * add log for error in upload delete * aysnc get node * new tentative * attempt 2 * attempt 3 * new demo shell test travis change for test * excluded file tslint fix * remove desktop only class * renable tests * decrease time notification * add process service multiselect demo test fix e2e * remove log * add custom toolbar example
This commit is contained in:
@@ -52,10 +52,7 @@ export class UploadService {
|
||||
fileUploadDeleted: Subject<FileUploadDeleteEvent> = new Subject<FileUploadDeleteEvent>();
|
||||
fileDeleted: Subject<string> = new Subject<string>();
|
||||
|
||||
constructor(protected apiService: AlfrescoApiService,
|
||||
appConfigService: AppConfigService) {
|
||||
this.excludedFileList = <string[]> appConfigService.get('files.excluded');
|
||||
this.matchingOptions = appConfigService.get('files.match-options');
|
||||
constructor(protected apiService: AlfrescoApiService, private appConfigService: AppConfigService) {
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -89,8 +86,11 @@ export class UploadService {
|
||||
private filterElement(file: FileModel) {
|
||||
let isAllowed = true;
|
||||
|
||||
this.excludedFileList = <string[]> this.appConfigService.get('files.excluded');
|
||||
if (this.excludedFileList) {
|
||||
|
||||
this.matchingOptions = this.appConfigService.get('files.match-options');
|
||||
|
||||
isAllowed = this.excludedFileList.filter((pattern) => {
|
||||
let minimatch = new Minimatch(pattern, this.matchingOptions);
|
||||
return minimatch.match(file.name);
|
||||
|
Reference in New Issue
Block a user