mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Branch change commit
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<a class="btn btn-lg btn-primary btn-block mt-3" type="submit"
|
<a class="btn btn-lg btn-primary btn-block mt-3" type="submit"
|
||||||
[href]="authMethodModel.location"
|
[href]="buttonHref"
|
||||||
role="button"
|
role="button"
|
||||||
>{{"login.shibboleth" | translate}}</a>
|
>{{"login.shibboleth" | translate}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import {Component, Inject, Input, OnInit} from '@angular/core';
|
import { Component, Inject, Input, OnInit } from '@angular/core';
|
||||||
import { renderAuthMethodFor } from '../../authMethods-decorator';
|
import { renderAuthMethodFor } from '../../authMethods-decorator';
|
||||||
import { AuthMethodType } from '../../authMethods-type';
|
import { AuthMethodType } from '../../authMethods-type';
|
||||||
import { AuthMethodModel } from '../../../../core/auth/models/auth-method.model';
|
import { AuthMethodModel } from '../../../../core/auth/models/auth-method.model';
|
||||||
@@ -12,17 +12,20 @@ import { AuthMethodModel } from '../../../../core/auth/models/auth-method.model'
|
|||||||
@renderAuthMethodFor(AuthMethodType.Shibboleth)
|
@renderAuthMethodFor(AuthMethodType.Shibboleth)
|
||||||
export class DynamicShibbolethComponent implements OnInit {
|
export class DynamicShibbolethComponent implements OnInit {
|
||||||
|
|
||||||
@Input()authMethodModel: AuthMethodModel;
|
@Input() authMethodModel: AuthMethodModel;
|
||||||
|
|
||||||
|
buttonHref: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
constructor(@Inject('authMethodModelProvider') public injectedAuthMethodModel: AuthMethodModel) {
|
constructor(@Inject('authMethodModelProvider') public injectedAuthMethodModel: AuthMethodModel) {
|
||||||
this.authMethodModel = injectedAuthMethodModel;
|
this.authMethodModel = injectedAuthMethodModel;
|
||||||
|
this.buttonHref = ('https://fis.tiss.tuwien.ac.at' + this.authMethodModel.location + '/shibboleth')
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
console.log('injectedAuthMethodModel', this.injectedAuthMethodModel);
|
console.log('injectedAuthMethodModel', this.injectedAuthMethodModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user