Project

General

Profile

« Previous | Next » 

Revision 54446

Added by Sofia Baltzi over 5 years ago

Move email's body initialization to library

View differences:

modules/uoa-connect-portal/trunk/src/app/utils/subscribe/invite/invite.component.ts
85 85
                this.community = community;
86 86
                this.fullname = Session.getUserFullName();
87 87
                console.log("Fullname from session " + Session.getUserFullName());
88
                this.defaultBody = '<p>You are invited to subscribe to <a href="https://beta.' + this.communityId + '.openaire.eu/">' + this.community.title + '</a> dashboard.'
89
                                   + '<br>The purpose of this dashboard  is to gather, link &amp; monitor the research results related to your community.</p>'
90
                                   + '<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>';
91 88

  
92
                 // TODO move the initialisation
93
                 this.body = {fromMessage: ", on behalf of ", fromName: this.fullname, paragraphs: this.defaultBody, signature: "OpenAIRE team", note: ""};
94
                 this.email = {body: "", subject: "[OpenAIRE-Connect] " + community.title, recipients: []};
95
                 this.recipients = "";
89
                this.defaultBody = Composer.initializeInvitationEmailsBody(this.communityId, this.community.title);
96 90

  
97
                 this.status = this.errorCodes.DONE;
91
                // TODO move the initialisation
92
                this.body = {fromMessage: ", on behalf of ", fromName: this.fullname, paragraphs: this.defaultBody, signature: "OpenAIRE team", note: ""};
93
                this.email = {body: "", subject: "[OpenAIRE-Connect] " + community.title, recipients: []};
94
                this.recipients = "";
95

  
96
                this.status = this.errorCodes.DONE;
98 97
              },
99 98
              error => this.handleError(error)
100 99
            );

Also available in: Unified diff