mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Improve compatibility (#7214)
* refactor content * refactor core * refactor rest * fix lint * fix * lint * lint * fix * fix * fix
This commit is contained in:
@@ -25,11 +25,14 @@ import { ActivitiContentApi } from '@alfresco/js-api';
|
||||
})
|
||||
export class TaskUploadService extends UploadService {
|
||||
|
||||
private contentApi: ActivitiContentApi;
|
||||
private _contentApi;
|
||||
get contentApi(): ActivitiContentApi {
|
||||
this._contentApi = this._contentApi ?? new ActivitiContentApi(this.apiService.getInstance());
|
||||
return this._contentApi;
|
||||
}
|
||||
|
||||
constructor(protected apiService: AlfrescoApiService, appConfigService: AppConfigService, discoveryApiService: DiscoveryApiService) {
|
||||
super(apiService, appConfigService, discoveryApiService);
|
||||
this.contentApi = new ActivitiContentApi(apiService.getInstance());
|
||||
}
|
||||
|
||||
getUploadPromise(file: any): any {
|
||||
|
Reference in New Issue
Block a user