From 7e292cdde496d1411b53dca3956e6ed421ca6a06 Mon Sep 17 00:00:00 2001 From: Julius Gruber Date: Mon, 2 Sep 2019 16:23:30 +0200 Subject: [PATCH] Branch change commit --- .../methods/shibboleth/dynamic-shibboleth.component.html | 2 +- .../methods/shibboleth/dynamic-shibboleth.component.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app/shared/log-in/methods/shibboleth/dynamic-shibboleth.component.html b/src/app/shared/log-in/methods/shibboleth/dynamic-shibboleth.component.html index 35bc0545c5..e0170ead71 100644 --- a/src/app/shared/log-in/methods/shibboleth/dynamic-shibboleth.component.html +++ b/src/app/shared/log-in/methods/shibboleth/dynamic-shibboleth.component.html @@ -1,6 +1,6 @@
{{"login.shibboleth" | translate}}
diff --git a/src/app/shared/log-in/methods/shibboleth/dynamic-shibboleth.component.ts b/src/app/shared/log-in/methods/shibboleth/dynamic-shibboleth.component.ts index 40950308b9..f7e0ec0dad 100644 --- a/src/app/shared/log-in/methods/shibboleth/dynamic-shibboleth.component.ts +++ b/src/app/shared/log-in/methods/shibboleth/dynamic-shibboleth.component.ts @@ -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 { AuthMethodType } from '../../authMethods-type'; 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) export class DynamicShibbolethComponent implements OnInit { - @Input()authMethodModel: AuthMethodModel; + @Input() authMethodModel: AuthMethodModel; + + buttonHref: string; /** * @constructor */ constructor(@Inject('authMethodModelProvider') public injectedAuthMethodModel: AuthMethodModel) { this.authMethodModel = injectedAuthMethodModel; + this.buttonHref = ('https://fis.tiss.tuwien.ac.at' + this.authMethodModel.location + '/shibboleth') } ngOnInit(): void { console.log('injectedAuthMethodModel', this.injectedAuthMethodModel); - } + } }