Clean code and change ps to note

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@54262 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-12-10 12:51:55 +00:00
parent dc07897cd8
commit 3d6d94b99c
2 changed files with 2 additions and 9 deletions

View File

@ -12,7 +12,6 @@
<div *ngIf="successfulSentMessage" class="uk-alert uk-alert-success" role="alert">{{successfulSentMessage}}</div> <div *ngIf="successfulSentMessage" class="uk-alert uk-alert-success" role="alert">{{successfulSentMessage}}</div>
<div *ngIf="inviteErrorMessage" class="uk-alert uk-alert-warning" role="alert">{{inviteErrorMessage}}</div> <div *ngIf="inviteErrorMessage" class="uk-alert uk-alert-warning" role="alert">{{inviteErrorMessage}}</div>
<div *ngIf="communityId != null && status == errorCodes.DONE"> <div *ngIf="communityId != null && status == errorCodes.DONE">
<!--table *ngIf="communityId != null && community != null && !showLoading && !errorMessage" class="uk-table uk-align-center"-->
<table class="uk-table uk-align-center"> <table class="uk-table uk-align-center">
<tbody> <tbody>
<!-- <tr> <!-- <tr>
@ -23,7 +22,6 @@
</td> </td>
</tr> --> </tr> -->
<tr> <tr>
<!-- <div *ngIf="!body.fromName && showAddNameMessage" class="uk-width-large uk-text-danger uk-text-small uk-margin-top">Please add your name.</div> -->
<td for="from" class="uk-text-bold uk-width-1-3@xl uk-width-1-3@m uk-width-1-3@s uk-text-right">From <span class="uk-text-danger uk-text-bold">*</span> :</td> <td for="from" class="uk-text-bold uk-width-1-3@xl uk-width-1-3@m uk-width-1-3@s uk-text-right">From <span class="uk-text-danger uk-text-bold">*</span> :</td>
<td class="uk-text-left uk-width-expand"> <td class="uk-text-left uk-width-expand">
<div *ngIf="!body.fromName" class="uk-width-large uk-text-danger uk-text-small uk-margin-top">Please add your name.</div> <div *ngIf="!body.fromName" class="uk-width-large uk-text-danger uk-text-small uk-margin-top">Please add your name.</div>
@ -85,9 +83,6 @@
<!--(blur)="onBlur($event)"--> <!--(blur)="onBlur($event)"-->
<!--(change)="onChange($event)"--> <!--(change)="onChange($event)"-->
</ckeditor> </ckeditor>
<!-- <textarea type="text"
class="form-control uk-input uk-width-large@l uk-width-medium@s" [(ngModel)] = "email.body" id="message">
</textarea> -->
</td> </td>
<td *ngIf= "!allowEdit()" class="uk-text-left"> <td *ngIf= "!allowEdit()" class="uk-text-left">
@ -112,8 +107,6 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<!-- <div *ngIf="successfulSentMessage" class="uk-alert uk-alert-success" role="alert">{{successfulSentMessage}}</div>
<div *ngIf="inviteErrorMessage" class="uk-alert uk-alert-warning" role="alert">{{inviteErrorMessage}}</div> -->
<table class="uk-table uk-align-center"> <table class="uk-table uk-align-center">
<tbody> <tbody>
<tr> <tr>

View File

@ -88,7 +88,7 @@ export class InviteComponent implements OnInit {
+ '<br>The purpose of this dashboard is to gather, link &amp; monitor the research results related to your community.</p><p>The community dashboard is part of the <a href="https://connect.openaire.eu/">OpenAIRE-Connect</a> project and currently is in BETA version.</p>'; + '<br>The purpose of this dashboard is to gather, link &amp; monitor the research results related to your community.</p><p>The community dashboard is part of the <a href="https://connect.openaire.eu/">OpenAIRE-Connect</a> project and currently is in BETA version.</p>';
// TODO move the initialisation // TODO move the initialisation
this.body = {/*salutation: "Dear Sir/Madame,",*/ fromMessage: ", on behalf of ", fromName: this.fullname, paragraphs: this.defaultBody, /*closing: "Kind regards,",*/ signature: "OpenAIRE team", ps: ""}; this.body = {/*salutation: "Dear Sir/Madame,",*/ fromMessage: ", on behalf of ", fromName: this.fullname, paragraphs: this.defaultBody, /*closing: "Kind regards,",*/ signature: "OpenAIRE team", note: ""};
this.email = {body: "", subject: "[OpenAIRE-Connect] " + community.title, recipients: []}; this.email = {body: "", subject: "[OpenAIRE-Connect] " + community.title, recipients: []};
this.recipients = ""; this.recipients = "";
@ -132,7 +132,7 @@ export class InviteComponent implements OnInit {
this.successfulSentMessage = res + " email sent successfully!"; this.successfulSentMessage = res + " email sent successfully!";
} }
this.body = {/*salutation: "Dear Sir/Madame,",*/ fromMessage: ", on behalf of ", fromName: this.fullname, paragraphs: this.defaultBody, /*closing: "Kind regards,",*/ signature: "OpenAIRE team", ps: ""}; this.body = {/*salutation: "Dear Sir/Madame,",*/ fromMessage: ", on behalf of ", fromName: this.fullname, paragraphs: this.defaultBody, /*closing: "Kind regards,",*/ signature: "OpenAIRE team", note: ""};
this.email = {body: "", subject: "[OpenAIRE-Connect] " + this.community.title, recipients: []}; this.email = {body: "", subject: "[OpenAIRE-Connect] " + this.community.title, recipients: []};
this.recipients = ""; this.recipients = "";
}, },