mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
integrate search new javascript api
This commit is contained in:
@@ -81,7 +81,7 @@ class SearchDemo implements OnInit {
|
||||
}
|
||||
|
||||
login() {
|
||||
this.authService.login('admin', 'admin').subscribe(
|
||||
this.authService.login('admin', 'admin', ['ECM']).subscribe(
|
||||
token => {
|
||||
console.log(token);
|
||||
this.token = token;
|
||||
|
@@ -40,7 +40,7 @@ export class AlfrescoSearchService {
|
||||
rootNodeId: nodeId,
|
||||
nodeType: 'cm:content'
|
||||
};
|
||||
return this.authService.alfrescoApi.search.liveSearchNodes(term, opts);
|
||||
return this.authService.getAlfrescoApi().search.liveSearchNodes(term, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user