From 1f55667499aaa887c3f4c49c4b21011797c876ed Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 17 Mar 2021 15:42:43 +0000 Subject: [PATCH] [Library | Trunk]: Full screen modal: Remove footer, move buttons on header, Make heading h4. User component: Redirect on error code 3 git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60660 d315682c-612b-4755-9ff5-7f18f6832af3 --- login/user.component.ts | 2 +- .../full-screen-modal.component.ts | 21 ++++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/login/user.component.ts b/login/user.component.ts index e1b353a0..acf2b748 100644 --- a/login/user.component.ts +++ b/login/user.component.ts @@ -52,7 +52,7 @@ export class UserComponent { this.errorCode = params["errorCode"]; this.redirectUrl = params["redirectUrl"]; this.errorMessage = ""; - if (this.loggedIn && this.errorCode == '1') { + if (this.loggedIn && (this.errorCode == '1' || this.errorCode == '3')) { this.redirect(); } else { this.loading = false; diff --git a/utils/modal/full-screen-modal/full-screen-modal.component.ts b/utils/modal/full-screen-modal/full-screen-modal.component.ts index 26717cd6..99185b1f 100644 --- a/utils/modal/full-screen-modal/full-screen-modal.component.ts +++ b/utils/modal/full-screen-modal/full-screen-modal.component.ts @@ -7,19 +7,24 @@ import {delay} from "rxjs/operators"; template: `
`