changes in feedback - parameterize mail| fixe navigation bar
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@50322 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
7be97877c6
commit
01472f0ce0
|
@ -1,7 +1,6 @@
|
|||
|
||||
import { Component } from '@angular/core';
|
||||
import { Component, Input } from '@angular/core';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
import {OpenaireProperties} from '../../utils/properties/openaireProperties';
|
||||
import {StringUtils} from '../../utils/string-utils.class';
|
||||
|
||||
@Component({
|
||||
|
@ -17,15 +16,17 @@ import {StringUtils} from '../../utils/string-utils.class';
|
|||
`
|
||||
})
|
||||
export class FeedbackComponent {
|
||||
public feedbackmail:string = "someone@example.com";
|
||||
public subject:string = "[Feedback - OpenAIRE Explore]";
|
||||
@Input()feedbackmail:string = "someone@example.com";
|
||||
@Input()portalName:string = "Explore";
|
||||
public subject:string;
|
||||
public body:string = "Send from page";
|
||||
|
||||
sub:any;
|
||||
constructor(private route: ActivatedRoute) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.feedbackmail = OpenaireProperties.getFeedbackMail();
|
||||
// this.feedbackmail = OpenaireProperties.getFeedbackMail();
|
||||
this.subject = "[Feedback - OpenAIRE "+this.portalName+"]";
|
||||
this.initialize();
|
||||
this.sub = this.route.queryParams.subscribe(params => {
|
||||
this.initialize();
|
||||
|
@ -40,7 +41,7 @@ export class FeedbackComponent {
|
|||
referrer = location.href;
|
||||
}
|
||||
|
||||
this.body = "[Please write your message here] \n\n\nOpenAIRE Explore \nSent from "+((referrer)?referrer:" [referrer not available]")+ " \n(please don't delete this part of the message)";
|
||||
this.body = "[Please write your message here] \n\n\nOpenAIRE " + this.portalName + " \nSent from "+((referrer)?referrer:" [referrer not available]")+ " \n(please don't delete this part of the message)";
|
||||
this.body = StringUtils.URIEncode(this.body);
|
||||
// this.subject = StringUtils.URIEncode(this.subject);
|
||||
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
<div>
|
||||
<div *ngIf= "isClient" class="uk-panel" id="module-0">
|
||||
<ul class="uk-nav uk-nav-default">
|
||||
<li *ngIf="!onlyTop" class="uk-nav-header uk-parent" *ngFor="let menu of menuItems">
|
||||
<ng-container *ngIf="!onlyTop" >
|
||||
<li class="uk-nav-header uk-parent" *ngFor="let menu of menuItems">
|
||||
<a routerLinkActive="uk-link" routerLink="{{menu.rootItem.route}}" class="uk-offcanvas-close custom-offcanvas-close">{{menu.rootItem.title}}</a>
|
||||
<ul class="uk-nav-sub">
|
||||
<li *ngFor="let submenu of menu.items">
|
||||
|
@ -29,6 +30,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ng-container>
|
||||
<!--li class="uk-nav-header uk-parent">
|
||||
<a routerLinkActive="uk-link" routerLink="/search/find" class="uk-offcanvas-close custom-offcanvas-close">Search</a>
|
||||
<ul class="uk-nav-sub">
|
||||
|
|
Loading…
Reference in New Issue