mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-3245] Fetch alfresco repo name from an API (#5676)
* [ACA-3245] Fetch alfresco repo name from an API * [ACA-3245] Take the repo name from the API only when it is not defined in the app config * [ACA-3245] Remo alfresco-1 as default in app.config service * [ACA-3245] Remove passing null argument when calling getRepositories function * [ACA-3245] Revert removing function parameter includeAccounts * [ACA-3245] Add tenantId as optional * [ACA-3245] Revert method * [ACA-3245] Change both parameters to optional * [ACA-3245] Rename param
This commit is contained in:
@@ -54,15 +54,14 @@ export class ActivitiContentService {
|
||||
|
||||
/**
|
||||
* Returns a list of all the repositories configured
|
||||
*
|
||||
* @param accountId
|
||||
* @param folderId
|
||||
* @param tenantId
|
||||
* @param includeAccount
|
||||
*/
|
||||
getAlfrescoRepositories(tenantId: number, includeAccount: boolean): Observable<any> {
|
||||
getAlfrescoRepositories(tenantId?: number, includeAccount?: boolean): Observable<any> {
|
||||
const apiService: AlfrescoApiCompatibility = this.apiService.getInstance();
|
||||
const opts = {
|
||||
tenantId: tenantId,
|
||||
includeAccounts: includeAccount
|
||||
tenantId,
|
||||
includeAccounts: includeAccount ? includeAccount : true
|
||||
};
|
||||
return from(apiService.activiti.alfrescoApi.getRepositories(opts))
|
||||
.pipe(
|
||||
|
Reference in New Issue
Block a user