mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Merge pull request #1383 from Alfresco/dev-mvitale-1370
Remove use of deprecated Services
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, AuthService, StorageService } from 'ng2-alfresco-core';
|
||||
import { LoginModule } from 'ng2-alfresco-login';
|
||||
|
||||
@Component({
|
||||
@@ -73,8 +73,8 @@ export class AppComponent {
|
||||
|
||||
public disableCsrf: boolean = false;
|
||||
|
||||
constructor(public auth: AlfrescoAuthenticationService,
|
||||
private settingsService: AlfrescoSettingsService,
|
||||
constructor(public authService: AuthService,
|
||||
private settingsService: SettingsService,
|
||||
private storage: StorageService) {
|
||||
|
||||
settingsService.ecmHost = this.ecmHost;
|
||||
|
@@ -18,8 +18,8 @@
|
||||
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import {
|
||||
AlfrescoAuthenticationService,
|
||||
AlfrescoSettingsService,
|
||||
AuthService,
|
||||
SettingsService,
|
||||
AlfrescoApiService,
|
||||
CoreModule
|
||||
} from 'ng2-alfresco-core';
|
||||
@@ -43,10 +43,10 @@ describe('AlfrescoLogin', () => {
|
||||
],
|
||||
declarations: [AlfrescoLoginComponent],
|
||||
providers: [
|
||||
AlfrescoSettingsService,
|
||||
AlfrescoAuthenticationService,
|
||||
SettingsService,
|
||||
AuthService,
|
||||
AlfrescoApiService,
|
||||
{provide: AlfrescoAuthenticationService, useClass: AuthenticationMock},
|
||||
{provide: AuthService, useClass: AuthenticationMock},
|
||||
{provide: AlfrescoTranslationService, useClass: TranslationMock}
|
||||
]
|
||||
}).compileComponents();
|
||||
|
@@ -19,8 +19,8 @@ import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
|
||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
||||
import {
|
||||
AlfrescoTranslationService,
|
||||
AlfrescoAuthenticationService,
|
||||
AlfrescoSettingsService
|
||||
AuthService,
|
||||
SettingsService
|
||||
} from 'ng2-alfresco-core';
|
||||
import { FormSubmitEvent } from '../models/form-submit-event.model';
|
||||
|
||||
@@ -79,8 +79,8 @@ export class AlfrescoLoginComponent implements OnInit {
|
||||
* @param translate
|
||||
*/
|
||||
constructor(private _fb: FormBuilder,
|
||||
public authService: AlfrescoAuthenticationService,
|
||||
public settingsService: AlfrescoSettingsService,
|
||||
public authService: AuthService,
|
||||
public settingsService: SettingsService,
|
||||
private translate: AlfrescoTranslationService) {
|
||||
|
||||
translate.addTranslationFolder('ng2-alfresco-login', 'node_modules/ng2-alfresco-login/src');
|
||||
|
Reference in New Issue
Block a user