mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
Remove http deps from search service which were no longer used
This commit is contained in:
@@ -26,10 +26,9 @@ export class AlfrescoServiceMock extends AlfrescoService {
|
|||||||
_folderToReturn: any = {};
|
_folderToReturn: any = {};
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
http: Http = null,
|
|
||||||
settings: AlfrescoSettingsService = null
|
settings: AlfrescoSettingsService = null
|
||||||
) {
|
) {
|
||||||
super(http, settings);
|
super(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFolder(folder: string) {
|
getFolder(folder: string) {
|
||||||
|
@@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Injectable } from 'angular2/core';
|
import { Injectable } from 'angular2/core';
|
||||||
import { Http, Response } from 'angular2/http';
|
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
|
|
||||||
import { AlfrescoSettingsService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoSettingsService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
||||||
@@ -31,8 +30,7 @@ export class AlfrescoService {
|
|||||||
|
|
||||||
private _baseUrlPath: string = '/alfresco/api/-default-/public/alfresco/versions/1';
|
private _baseUrlPath: string = '/alfresco/api/-default-/public/alfresco/versions/1';
|
||||||
|
|
||||||
constructor(private http: Http,
|
constructor(private settings: AlfrescoSettingsService) {
|
||||||
private settings: AlfrescoSettingsService) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getHost(): string {
|
public getHost(): string {
|
||||||
@@ -94,7 +92,7 @@ export class AlfrescoService {
|
|||||||
document.entry.id + '/content';
|
document.entry.id + '/content';
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleError(error: Response) {
|
private handleError(error: any) {
|
||||||
// in a real world app, we may send the error to some remote logging infrastructure
|
// in a real world app, we may send the error to some remote logging infrastructure
|
||||||
// instead of just logging it to the console
|
// instead of just logging it to the console
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
Reference in New Issue
Block a user