mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
# Changed TranslationService
This commit is contained in:
@@ -56,7 +56,7 @@ export class FileUploadingDialogComponent implements OnInit{
|
||||
constructor(private cd: ChangeDetectorRef,
|
||||
translate: AlfrescoTranslationService,
|
||||
private _uploaderService: UploadService) {
|
||||
translate.addComponent('node_modules/ng2-alfresco-upload');
|
||||
translate.addTranslationFolder('node_modules/ng2-alfresco-upload');
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user