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:
parent
8f926329c3
commit
69d62575ac
|
@ -49,7 +49,7 @@
|
||||||
There is no research community selected.
|
There is no research community selected.
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="errorCode == '6'" class="uk-alert uk-alert-warning">
|
<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>
|
||||||
<div *ngIf="!loggedIn && errorMessage.length > 0" class="uk-alert uk-alert-danger">{{errorMessage}}</div>
|
<div *ngIf="!loggedIn && errorMessage.length > 0" class="uk-alert uk-alert-danger">{{errorMessage}}</div>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import {NgModule} from '@angular/core';
|
import {NgModule} from '@angular/core';
|
||||||
import {CommonModule} from '@angular/common';
|
import {CommonModule} from '@angular/common';
|
||||||
import {FormsModule} from '@angular/forms';
|
import {FormsModule} from '@angular/forms';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import {UserRoutingModule} from './user-routing.module';
|
import {UserRoutingModule} from './user-routing.module';
|
||||||
|
|
||||||
|
@ -13,7 +14,7 @@ import {LoginGuard} from './loginGuard.guard';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule, FormsModule, UserRoutingModule,
|
CommonModule, FormsModule, UserRoutingModule, RouterModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
PreviousRouteRecorder, FreeGuard, LoginGuard
|
PreviousRouteRecorder, FreeGuard, LoginGuard
|
||||||
|
|
Loading…
Reference in New Issue