in user page add a link to home when the error is that user needs to be subscribed

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54046 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-11-29 11:34:09 +00:00
parent 8f926329c3
commit 69d62575ac
2 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@
There is no research community selected.
</div>
<div *ngIf="errorCode == '6'" class="uk-alert uk-alert-warning">
For this action you have to subscribe to research community first.
For this action you have to subscribe to research community first. Subscribe <a routerLink="/">here</a>.
</div>
<div *ngIf="!loggedIn && errorMessage.length > 0" class="uk-alert uk-alert-danger">{{errorMessage}}</div>

View File

@ -1,6 +1,7 @@
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import { RouterModule } from '@angular/router';
import {UserRoutingModule} from './user-routing.module';
@ -13,7 +14,7 @@ import {LoginGuard} from './loginGuard.guard';
@NgModule({
imports: [
CommonModule, FormsModule, UserRoutingModule,
CommonModule, FormsModule, UserRoutingModule, RouterModule
],
providers: [
PreviousRouteRecorder, FreeGuard, LoginGuard