mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Removed model InjectedAuthMethods
This commit is contained in:
@@ -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
|
||||
|
@@ -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<State>} store
|
||||
*/
|
||||
constructor(
|
||||
@Inject('authMethodModelProvider') public injectedAuthMethodModel: InjectedAuthMethodModel,
|
||||
@Inject('authMethodModelProvider') public injectedAuthMethodModel: AuthMethodModel,
|
||||
/* private authService: AuthService,*/
|
||||
private formBuilder: FormBuilder,
|
||||
private store: Store<CoreState>
|
||||
|
Reference in New Issue
Block a user