mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
add auth in demo
This commit is contained in:
@@ -77,6 +77,11 @@ export class ViewerComponent {
|
||||
this.extension = this.getFileExtension(filenameFromUrl);
|
||||
} else if (this.fileNodeId) {
|
||||
console.log('call api');
|
||||
this.authService.getAlfrescoApi().getNodeInfo(this.fileNodeId).then(function (data) {
|
||||
console.log('This is the name' + JSON.stringify(data) );
|
||||
}, function (error) {
|
||||
console.log('This node does not exist');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user