mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix compilation errors with latest TS/TSLint (#1651)
latest TS/TSLint libs detect couple of problems related to private apis used earlier; changing to public in order to fix compilation
This commit is contained in:
committed by
Mario Romano
parent
c35f948546
commit
3375a63680
@@ -156,7 +156,7 @@ export class UploadButtonComponent {
|
||||
* @param path
|
||||
* @param files
|
||||
*/
|
||||
private uploadFiles(path: string, files: any[]) {
|
||||
uploadFiles(path: string, files: any[]) {
|
||||
if (files.length) {
|
||||
let latestFilesAdded = this.uploadService.addToQueue(files);
|
||||
this.uploadService.uploadFilesInTheQueue(this.rootFolderId, path, this.onSuccess);
|
||||
|
@@ -20,6 +20,7 @@ import { Response } from '@angular/http';
|
||||
import { Observer, Observable } from 'rxjs/Rx';
|
||||
import { AlfrescoApiService, LogService } from 'ng2-alfresco-core';
|
||||
import { FileModel } from '../models/file.model';
|
||||
import { MinimalNodeEntity } from 'alfresco-js-api';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -170,7 +171,7 @@ export class UploadService {
|
||||
.catch(err => this.handleError(err));
|
||||
}
|
||||
|
||||
private callApiCreateFolder(relativePath: string, name: string) {
|
||||
callApiCreateFolder(relativePath: string, name: string): Promise<MinimalNodeEntity> {
|
||||
return this.apiService.getInstance().nodes.createFolder(name, relativePath);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user