mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
migrate document list to new api
This commit is contained in:
@@ -90,6 +90,10 @@ export class AlfrescoAuthenticationService extends AlfrescoAuthenticationBase {
|
||||
});
|
||||
}
|
||||
|
||||
getAlfrescoApi(): any {
|
||||
return this.alfrescoApi;
|
||||
}
|
||||
|
||||
/**
|
||||
* The method return tru if the user is logged in
|
||||
* @returns {boolean}
|
||||
|
@@ -30,8 +30,8 @@ export class AlfrescoContentService {
|
||||
* @param document Node to get URL for.
|
||||
* @returns {string} URL address.
|
||||
*/
|
||||
getDocumentThumbnailUrl(document: any) {
|
||||
this.authService.alfrescoApi.getDocumentThumbnailUrl(document.entry.id);
|
||||
getDocumentThumbnailUrl(document: any): string {
|
||||
return this.authService.alfrescoApi.getDocumentThumbnailUrl(document.entry.id);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,7 +39,7 @@ export class AlfrescoContentService {
|
||||
* @param document Node to get URL for.
|
||||
* @returns {string} URL address.
|
||||
*/
|
||||
getContentUrl(document: any) {
|
||||
this.authService.alfrescoApi.getContentUrl(document.entry.id);
|
||||
getContentUrl(document: any): string {
|
||||
return this.authService.alfrescoApi.getContentUrl(document.entry.id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user