Browse Source

Fix bug.

pull/516/head
Sebastian 6 years ago
parent
commit
4b10a7edb5
  1. 10
      backend/extensions/Squidex.Extensions/Actions/Email/EmailAction.cs
  2. 4
      backend/extensions/Squidex.Extensions/Actions/Email/EmailActionHandler.cs
  3. 19
      frontend/app/features/rules/pages/rules/rule-wizard.component.html

10
backend/extensions/Squidex.Extensions/Actions/Email/EmailAction.cs

@ -35,17 +35,17 @@ namespace Squidex.Extensions.Actions.Email
[DataType(DataType.Text)] [DataType(DataType.Text)]
public bool ServerUseSsl { get; set; } public bool ServerUseSsl { get; set; }
[Required]
[Display(Name = "Password", Description = "The password for the SMTP server.")]
[DataType(DataType.Password)]
public string ServerPassword { get; set; }
[Required] [Required]
[Display(Name = "Username", Description = "The username for the SMTP server.")] [Display(Name = "Username", Description = "The username for the SMTP server.")]
[DataType(DataType.Text)] [DataType(DataType.Text)]
[Formattable] [Formattable]
public string ServerUsername { get; set; } public string ServerUsername { get; set; }
[Required]
[Display(Name = "Password", Description = "The password for the SMTP server.")]
[DataType(DataType.Password)]
public string ServerPassword { get; set; }
[Required] [Required]
[Display(Name = "From Address", Description = "The email sending address.")] [Display(Name = "From Address", Description = "The email sending address.")]
[DataType(DataType.Text)] [DataType(DataType.Text)]

4
backend/extensions/Squidex.Extensions/Actions/Email/EmailActionHandler.cs

@ -59,8 +59,8 @@ namespace Squidex.Extensions.Actions.Email
using (ct.Register(client.SendAsyncCancel)) using (ct.Register(client.SendAsyncCancel))
{ {
await client.SendMailAsync( await client.SendMailAsync(
job.MessageBody, job.MessageFrom,
job.MessageBody, job.MessageTo,
job.MessageSubject, job.MessageSubject,
job.MessageBody); job.MessageBody);
} }

19
frontend/app/features/rules/pages/rules/rule-wizard.component.html

@ -126,16 +126,15 @@
</ng-container> </ng-container>
<ng-container footer> <ng-container footer>
<div> <ng-container *ngIf="step === 2 || step === 4">
<ng-container *ngIf="step === 2"> <button type="reset" class="float-left btn btn-secondary" (click)="emitComplete()">Cancel</button>
<button type="reset" class="float-left btn btn-secondary" (click)="emitComplete()">Cancel</button> </ng-container>
<button type="submit" class="float-right btn btn-primary" (click)="saveTrigger()" *ngIf="isEditable">Save</button>
</ng-container>
<ng-container *ngIf="step === 4"> <ng-container *ngIf="isEditable">
<button type="reset" class="float-left btn btn-secondary" (click)="emitComplete()">Cancel</button> <button *ngIf="step === 2 && isWizard" type="submit" class="float-right btn btn-primary" (click)="saveTrigger()">Next</button>
<button type="submit" class="float-right btn btn-primary" (click)="saveAction()" *ngIf="isEditable">Save</button> <button *ngIf="step === 2 && !isWizard" type="submit" class="float-right btn btn-primary" (click)="saveTrigger()">Save</button>
</ng-container>
</div> <button *ngIf="step === 4" type="submit" class="float-right btn btn-primary" (click)="saveAction()">Save</button>
</ng-container>
</ng-container> </ng-container>
</sqx-modal-dialog> </sqx-modal-dialog>
Loading…
Cancel
Save