Make from name required
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@54063 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
2cf817426a
commit
bb6a567681
|
@ -23,8 +23,10 @@
|
|||
</td>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<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:</td>
|
||||
<!-- <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 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>
|
||||
<input placeholder="Type your name" type="text" (click)="resetMessages()"
|
||||
class="form-control uk-input uk-width-large@l uk-width-medium@s" [(ngModel)] = "body.fromName" id="from">
|
||||
</td>
|
||||
|
|
|
@ -33,6 +33,7 @@ export class InviteComponent implements OnInit {
|
|||
public inviteErrorMessage: string = '';
|
||||
public missingCommunityId: string = '';
|
||||
public showAddRecipientMessage: boolean = false;
|
||||
public showAddNameMessage: boolean = false;
|
||||
|
||||
public email: Email;
|
||||
public body: Body;
|
||||
|
@ -115,7 +116,7 @@ export class InviteComponent implements OnInit {
|
|||
this.successfulSentMessage = "";
|
||||
this.inviteErrorMessage = "";
|
||||
this.status = this.errorCodes.LOADING;
|
||||
if (this.recipients != "") {
|
||||
if (this.recipients != "" && this.body.fromName != "") {
|
||||
if (this.validateEmails()) {
|
||||
this.composeEmail();
|
||||
console.log(this.email.body);
|
||||
|
|
Loading…
Reference in New Issue