diff --git a/src/app/shared/log-in/container/login-container.component.ts b/src/app/shared/log-in/container/login-container.component.ts index 3f59cb2122..11b8a0d8de 100644 --- a/src/app/shared/log-in/container/login-container.component.ts +++ b/src/app/shared/log-in/container/login-container.component.ts @@ -1,9 +1,9 @@ -import { Component, ContentChild, Injector, Input, OnInit, ViewChild, ViewChildren } from '@angular/core'; +import { Component, Injector, Input, OnInit} from '@angular/core'; import { rendersAuthMethodType } from '../methods/authMethods-decorator'; -import { AuthMethodModel } from '../../../core/auth/models/auth-method.model'; -import { select, Store } from '@ngrx/store'; +import { Store } from '@ngrx/store'; import { CoreState } from '../../../core/core.reducers'; -import { InjectedAuthMethodModel } from '../injectedAuthMethodModel/injectedAuthMethodModel'; +import { AuthMethodModel } from '../../../core/auth/models/auth-method.model'; + /** * This component represents a section that contains the submission license form. @@ -15,7 +15,7 @@ import { InjectedAuthMethodModel } from '../injectedAuthMethodModel/injectedAuth }) export class LoginContainerComponent implements OnInit { - @Input() authMethodModel: InjectedAuthMethodModel; + @Input() authMethodModel: AuthMethodModel; /** * Injector to inject a section component with the @Input parameters diff --git a/src/app/shared/log-in/methods/password/log-in-password.component.ts b/src/app/shared/log-in/methods/password/log-in-password.component.ts index dc871108f9..ec42ef9a51 100644 --- a/src/app/shared/log-in/methods/password/log-in-password.component.ts +++ b/src/app/shared/log-in/methods/password/log-in-password.component.ts @@ -12,8 +12,6 @@ import { import { getAuthenticationError, getAuthenticationInfo, - isAuthenticated, - isAuthenticationLoading, } from '../../../../core/auth/selectors'; import { CoreState } from '../../../../core/core.reducers'; @@ -23,7 +21,7 @@ import { AuthService } from '../../../../core/auth/auth.service'; import { AuthMethodType } from '../authMethods-type'; import { renderAuthMethodFor } from '../authMethods-decorator'; import { AuthMethodModel } from '../../../../core/auth/models/auth-method.model'; -import { InjectedAuthMethodModel } from '../../injectedAuthMethodModel/injectedAuthMethodModel'; + /** * /users/sign-in @@ -68,7 +66,7 @@ export class LogInPasswordComponent implements OnInit { */ public form: FormGroup; - @Input() authMethodModel: InjectedAuthMethodModel; + @Input() authMethodModel: AuthMethodModel; /** * @constructor @@ -77,7 +75,7 @@ export class LogInPasswordComponent implements OnInit { * @param {Store} store */ constructor( - @Inject('authMethodModelProvider') public injectedAuthMethodModel: InjectedAuthMethodModel, + @Inject('authMethodModelProvider') public injectedAuthMethodModel: AuthMethodModel, /* private authService: AuthService,*/ private formBuilder: FormBuilder, private store: Store