# Changed TranslationService

This commit is contained in:
mauriziovitale84
2016-06-08 17:46:40 +01:00
parent 9dec406dde
commit 441d65a0e1
16 changed files with 221 additions and 226 deletions

View File

@@ -95,7 +95,7 @@ export class UploadButtonComponent {
}
});
this.translate = translate;
this.translate.addComponent('node_modules/ng2-alfresco-upload');
this.translate.addTranslationFolder('node_modules/ng2-alfresco-upload');
}
/**
@@ -104,7 +104,7 @@ export class UploadButtonComponent {
* @param {File[]} files - files dropped in the drag area.
*/
onFilesAdded($event: any): void {
let files = $event.currentTarget.files;
let files = $event.currentTarget.files;alfres
this.printFileInfo(files);
this.uploadFiles(this.uploaddirectory, files);
// reset the value of the input file