Remove properties for sending email in invite form
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@53971 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
b3fbb00d8a
commit
cbcd2beba5
|
@ -9,7 +9,8 @@
|
||||||
<errorMessages [status]="[status]" [type]="'community'"></errorMessages>
|
<errorMessages [status]="[status]" [type]="'community'"></errorMessages>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="missingCommunityId" class="uk-alert uk-alert-warning" role="alert">{{missingCommunityId}}</div>
|
<div *ngIf="missingCommunityId" class="uk-alert uk-alert-warning" role="alert">{{missingCommunityId}}</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="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 *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">
|
||||||
|
@ -105,8 +106,8 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<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> -->
|
||||||
<table class="uk-table uk-align-center">
|
<table class="uk-table uk-align-center">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {Component, OnInit, Input, ElementRef} from '@angular/core';
|
import {Component, OnInit, Input, ElementRef} from '@angular/core';
|
||||||
import {SimpleChanges, OnChanges} from '@angular/core';
|
import {SimpleChanges, OnChanges} from '@angular/core';
|
||||||
import {FormGroup, FormArray, FormBuilder, Validators} from "@angular/forms";
|
import {FormGroup, FormArray, FormBuilder, Validators} from "@angular/forms";
|
||||||
import {ActivatedRoute, Router} from '@angular/router';
|
import {ActivatedRoute, Router} from '@angular/router';
|
||||||
|
@ -118,7 +118,7 @@ export class InviteComponent implements OnInit {
|
||||||
this.composeEmail();
|
this.composeEmail();
|
||||||
console.log(this.email.body);
|
console.log(this.email.body);
|
||||||
|
|
||||||
this._emailService.sendEmail(this.properties.sendMailUrl, this.email).subscribe(
|
this._emailService.sendEmail(this.properties.adminToolsAPIURL + "/sendMail/", this.email).subscribe(
|
||||||
res => {
|
res => {
|
||||||
console.log("The email has been sent successfully!");
|
console.log("The email has been sent successfully!");
|
||||||
this.status = this.errorCodes.DONE;
|
this.status = this.errorCodes.DONE;
|
||||||
|
@ -136,7 +136,6 @@ export class InviteComponent implements OnInit {
|
||||||
error => {
|
error => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
this.status = this.errorCodes.DONE;
|
this.status = this.errorCodes.DONE;
|
||||||
//this.errorMessage = "gdgd";//inviteErrorMessage
|
|
||||||
this.inviteErrorMessage = "There was an error sending emails. Please try again.";
|
this.inviteErrorMessage = "There was an error sending emails. Please try again.";
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -104,9 +104,8 @@
|
||||||
"searchLinkToAdvancedOrganizations" : "/search/advanced/organizations",
|
"searchLinkToAdvancedOrganizations" : "/search/advanced/organizations",
|
||||||
"searchLinkToAdvancedPeople" : "/search/advanced/people",
|
"searchLinkToAdvancedPeople" : "/search/advanced/people",
|
||||||
|
|
||||||
"sendMailUrl": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/sendMail/",
|
|
||||||
"notifyForNewManagers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewManagers/",
|
"notifyForNewManagers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewManagers/",
|
||||||
"notifyForNewSubscribers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewSubscribers/",
|
"notifyForNewSubscribers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewSubscribers/",
|
||||||
|
|
||||||
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows",
|
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows",
|
||||||
"showLastIndexInformationLink" : true,
|
"showLastIndexInformationLink" : true,
|
||||||
|
|
Loading…
Reference in New Issue