Browse Source

Fix webhook.

pull/1235/head
Sebastian Stehle 1 year ago
parent
commit
78a7d35bd4
  1. 6
      backend/extensions/Squidex.Extensions/Actions/Webhook/WebhookFlowStep.cs
  2. 2
      backend/src/Squidex.Domain.Apps.Entities/Apps/Templates/StringLogger.cs
  3. 2
      frontend/src/app/shared/components/app-form.component.html
  4. 9
      frontend/src/app/theme/_mixins.scss

6
backend/extensions/Squidex.Extensions/Actions/Webhook/WebhookFlowStep.cs

@ -34,16 +34,16 @@ public sealed record WebhookFlowStep : FlowStep, IConvertibleToAction
[LocalizedRequired]
[Display(Name = "Url", Description = "The URL to the webhook.")]
[Expression]
public Uri Url { get; set; }
public string Url { get; set; }
[Expression(ExpressionFallback.Envelope)]
[Display(Name = "Payload (Optional)", Description = "Leave it empty to use the full event as body.")]
[Editor(FlowStepEditor.TextArea)]
[Expression(ExpressionFallback.Envelope)]
public string? Payload { get; set; }
[Expression]
[Display(Name = "Headers (Optional)", Description = "The message headers in the format '[Key]=[Value]', one entry per line.")]
[Editor(FlowStepEditor.TextArea)]
[Expression]
public string? Headers { get; set; }
[Display(Name = "Payload Type", Description = "The mime type of the payload.")]

2
backend/src/Squidex.Domain.Apps.Entities/Apps/Templates/StringLogger.cs

@ -104,9 +104,7 @@ public sealed class StringLogger : ILogger, ILogLine
private void AddToLine(string message)
{
startedLine += message;
lines.Add(startedLine);
startedLine = string.Empty;
}

2
frontend/src/app/shared/components/app-form.component.html

@ -23,7 +23,7 @@
</div>
</ng-container>
<ng-container footer>
<button class="btn btn-secondary" (click)="emitClose()" type="button">{{ "common.cancel" | sqxTranslate }}</button>
<button class="btn btn-text-secondary" (click)="emitClose()" type="button">{{ "common.cancel" | sqxTranslate }}</button>
<button class="btn btn-success" type="submit">
{{ "common.create" | sqxTranslate }}
</button>

9
frontend/src/app/theme/_mixins.scss

@ -24,7 +24,7 @@
}
@mixin build-text-button($color) {
color: $color !important;
color: $color;
&:disabled,
&.disabled {
@ -39,12 +39,9 @@
}
&:active,
&.active,
&:hover {
color: color.adjust($color, $lightness: -15%);
}
&:active {
border-color: transparent !important;
color: color.adjust($color, $lightness: -25%);
}
}

Loading…
Cancel
Save