mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
#1370 Remove use of AlfrescoSettingsService
This commit is contained in:
@@ -19,7 +19,7 @@ import { NgModule, Component } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
|
||||
import { CoreModule, AlfrescoSettingsService, AlfrescoAuthenticationService, StorageService } from 'ng2-alfresco-core';
|
||||
import { CoreModule, SettingsService, AlfrescoAuthenticationService, StorageService } from 'ng2-alfresco-core';
|
||||
import { LoginModule } from 'ng2-alfresco-login';
|
||||
|
||||
@Component({
|
||||
@@ -74,7 +74,7 @@ export class AppComponent {
|
||||
public disableCsrf: boolean = false;
|
||||
|
||||
constructor(public auth: AlfrescoAuthenticationService,
|
||||
private settingsService: AlfrescoSettingsService,
|
||||
private settingsService: SettingsService,
|
||||
private storage: StorageService) {
|
||||
|
||||
settingsService.ecmHost = this.ecmHost;
|
||||
|
@@ -19,7 +19,7 @@ import { ComponentFixture, TestBed, async } from '@angular/core/testing';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import {
|
||||
AlfrescoAuthenticationService,
|
||||
AlfrescoSettingsService,
|
||||
SettingsService,
|
||||
AlfrescoApiService,
|
||||
CoreModule
|
||||
} from 'ng2-alfresco-core';
|
||||
@@ -43,7 +43,7 @@ describe('AlfrescoLogin', () => {
|
||||
],
|
||||
declarations: [AlfrescoLoginComponent],
|
||||
providers: [
|
||||
AlfrescoSettingsService,
|
||||
SettingsService,
|
||||
AlfrescoAuthenticationService,
|
||||
AlfrescoApiService,
|
||||
{provide: AlfrescoAuthenticationService, useClass: AuthenticationMock},
|
||||
|
@@ -20,7 +20,7 @@ import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
||||
import {
|
||||
AlfrescoTranslationService,
|
||||
AlfrescoAuthenticationService,
|
||||
AlfrescoSettingsService
|
||||
SettingsService
|
||||
} from 'ng2-alfresco-core';
|
||||
import { FormSubmitEvent } from '../models/form-submit-event.model';
|
||||
|
||||
@@ -80,7 +80,7 @@ export class AlfrescoLoginComponent implements OnInit {
|
||||
*/
|
||||
constructor(private _fb: FormBuilder,
|
||||
public authService: AlfrescoAuthenticationService,
|
||||
public settingsService: AlfrescoSettingsService,
|
||||
public settingsService: SettingsService,
|
||||
private translate: AlfrescoTranslationService) {
|
||||
|
||||
translate.addTranslationFolder('ng2-alfresco-login', 'node_modules/ng2-alfresco-login/src');
|
||||
|
Reference in New Issue
Block a user