mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +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 { rendersAuthMethodType } from '../methods/authMethods-decorator';
|
||||||
import { AuthMethodModel } from '../../../core/auth/models/auth-method.model';
|
import { Store } from '@ngrx/store';
|
||||||
import { select, Store } from '@ngrx/store';
|
|
||||||
import { CoreState } from '../../../core/core.reducers';
|
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.
|
* 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 {
|
export class LoginContainerComponent implements OnInit {
|
||||||
|
|
||||||
@Input() authMethodModel: InjectedAuthMethodModel;
|
@Input() authMethodModel: AuthMethodModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Injector to inject a section component with the @Input parameters
|
* Injector to inject a section component with the @Input parameters
|
||||||
|
@@ -12,8 +12,6 @@ import {
|
|||||||
import {
|
import {
|
||||||
getAuthenticationError,
|
getAuthenticationError,
|
||||||
getAuthenticationInfo,
|
getAuthenticationInfo,
|
||||||
isAuthenticated,
|
|
||||||
isAuthenticationLoading,
|
|
||||||
} from '../../../../core/auth/selectors';
|
} from '../../../../core/auth/selectors';
|
||||||
import { CoreState } from '../../../../core/core.reducers';
|
import { CoreState } from '../../../../core/core.reducers';
|
||||||
|
|
||||||
@@ -23,7 +21,7 @@ import { AuthService } from '../../../../core/auth/auth.service';
|
|||||||
import { AuthMethodType } from '../authMethods-type';
|
import { AuthMethodType } from '../authMethods-type';
|
||||||
import { renderAuthMethodFor } from '../authMethods-decorator';
|
import { renderAuthMethodFor } from '../authMethods-decorator';
|
||||||
import { AuthMethodModel } from '../../../../core/auth/models/auth-method.model';
|
import { AuthMethodModel } from '../../../../core/auth/models/auth-method.model';
|
||||||
import { InjectedAuthMethodModel } from '../../injectedAuthMethodModel/injectedAuthMethodModel';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* /users/sign-in
|
* /users/sign-in
|
||||||
@@ -68,7 +66,7 @@ export class LogInPasswordComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
public form: FormGroup;
|
public form: FormGroup;
|
||||||
|
|
||||||
@Input() authMethodModel: InjectedAuthMethodModel;
|
@Input() authMethodModel: AuthMethodModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
@@ -77,7 +75,7 @@ export class LogInPasswordComponent implements OnInit {
|
|||||||
* @param {Store<State>} store
|
* @param {Store<State>} store
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
@Inject('authMethodModelProvider') public injectedAuthMethodModel: InjectedAuthMethodModel,
|
@Inject('authMethodModelProvider') public injectedAuthMethodModel: AuthMethodModel,
|
||||||
/* private authService: AuthService,*/
|
/* private authService: AuthService,*/
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: FormBuilder,
|
||||||
private store: Store<CoreState>
|
private store: Store<CoreState>
|
||||||
|
Reference in New Issue
Block a user